improved spacem method to handle unwritable names better (where perl was not happy...
[feisty_meow.git] / scripts / files / fix_game_perms.sh
1 #!/bin/bash
2
3 # fixes the permissions of files in the local games directory so that
4 # everyone can run or read them if the owner could.
5
6 sudo find /home/games -type f -perm /100 -exec chmod a+x {} ';'
7 sudo find /home/games -type f -perm /400 -exec chmod a+r {} ';'
8
9 sudo find /home/games -type d -exec chmod a+rx {} ';'
10