perl/bin/fix-permissions
Jan Koscielniak c4b68b0a77 Initial commit
2017-04-20 14:17:35 +02:00

12 lines
No EOL
337 B
Bash
Executable file

#!/bin/sh
# Allow this script to fail without failing a build
set +e
# Fix permissions on the given directory to allow group read/write of
# regular files and execute of directories.
chgrp -R 0 $1;
find -L $1 -xtype l -exec chgrp 0 {} \;
chmod -R g+rw $1;
find -L $1 -xtype l -exec chmod g+rw {} \;
find $1 -type d -exec chmod g+x {} +