Last active
December 16, 2015 09:59
-
-
Save kogir/5417236 to your computer and use it in GitHub Desktop.
Simple sync scripts for symlinks in AeroFS. Create and run them from the root of your AeroFS folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tar -xzf .aero-meta/symlinks.tgz | |
rm .aero-meta/symlinks.tgz | |
cat .aero-meta/exec.list | xargs -0 chmod +x | |
rm .aero-meta/exec.list | |
rm -rf .aero-meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf .aero-meta | |
mkdir .aero-meta | |
find . -type l > .aero-meta/symlinks.list | |
tar -czf .aero-meta/symlinks.tgz -T .aero-meta/symlinks.list | |
rm .aero-meta/symlinks.list | |
find . -type f -perm +0111 -print0 > .aero-meta/exec.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment