Created
January 28, 2016 11:36
-
-
Save kossoy/a7107690c5c06200b9e9 to your computer and use it in GitHub Desktop.
Fixing permissions downloaded files for Mac OS X
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
#!/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