Last active
January 17, 2020 12:55
-
-
Save dafi/d57d3c37059cb5db4b2fe0c009a2d723 to your computer and use it in GitHub Desktop.
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 | |
# Restore attribute from unzipped files | |
# When Finder unzip files it marks them as in "quarantine" | |
# so we restore the correct permission | |
xattr -dr com.apple.quarantine $1 | |
# remove execute attribute | |
# chmod -x $(git ls-files --modified) | |
find $1 -type f -perm 0755 -exec chmod 644 '{}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment