Skip to content

Instantly share code, notes, and snippets.

@jeffgodwyll
Created March 2, 2015 23:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffgodwyll/f958e975a2df72434624 to your computer and use it in GitHub Desktop.
Save jeffgodwyll/f958e975a2df72434624 to your computer and use it in GitHub Desktop.
When I move my android sdk folder onto an NTFS disk, I tend to loose the executable bit. This is to remedy the situation a whole lot better.
# Run in project root
# Recursively add executable bit to all files without a dot filename
find -type f -not -name "*.*" -exec chmod +x \{\} \;
# Recursively add exec bit to all files with .so in filename
find -type f -name "*.so*" -exec chmod +x \{\} \;
# Recursively add exec bit to all files with .so in filename
find -type f -name "*.jar*" -exec chmod +x \{\} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment