Skip to content

Instantly share code, notes, and snippets.

@Hendrik44
Created April 9, 2020 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hendrik44/bb26e2b46d917ba49f4b2f919bdab066 to your computer and use it in GitHub Desktop.
Save Hendrik44/bb26e2b46d917ba49f4b2f919bdab066 to your computer and use it in GitHub Desktop.
Fix permissions for .git dir for Synology cloudstation drive application
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