Created
April 9, 2020 19:28
-
-
Save Hendrik44/bb26e2b46d917ba49f4b2f919bdab066 to your computer and use it in GitHub Desktop.
Fix permissions for .git dir for Synology cloudstation drive application
This file contains hidden or 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
for i in $(find . -type d -name ".git") | |
do | |
echo "$i" | |
find $i -type f -exec chmod 644 {} \; | |
find $i -type d -exec chmod 755 {} \; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment