fix-permissions 216 B

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