Skip to content

Instantly share code, notes, and snippets.

@kogir
Last active December 16, 2015 09:59
Show Gist options
  • Save kogir/5417236 to your computer and use it in GitHub Desktop.
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.
#!/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
#!/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