summaryrefslogtreecommitdiffstats
path: root/root/usr/bin/fix-permissions
blob: b90d2089afceb15ef94f7ab72ca4211b4a9dca22 (plain)
1
2
3
4
5
6
7
#!/bin/sh
# Fix permissions on the given directory to allow group read/write of
# regular files and execute of directories.
chown -R git "$1"
chgrp -R 0 "$1"
chmod -R g+rw "$1"
find "$1" -type d -exec chmod g+x {} +