Skip to content

Instantly share code, notes, and snippets.

@kossoy
Created January 28, 2016 11:36
Show Gist options
  • Save kossoy/a7107690c5c06200b9e9 to your computer and use it in GitHub Desktop.
Save kossoy/a7107690c5c06200b9e9 to your computer and use it in GitHub Desktop.
Fixing permissions downloaded files for Mac OS X
#!/usr/bin/env
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
# Apple metadata removal
xattr -dr com.apple.quarantine .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment