Add two scripts to handle broken permissions in release dir

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-07 15:11:18 -07:00
parent 0c4161e5a3
commit bf99c90007
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
2 changed files with 7 additions and 0 deletions

2
find_broken_perms.sh Executable file
View File

@ -0,0 +1,2 @@
find release/linux-unpacked -type d -not -perm 755 -o -type f -not -perm 644 | xargs stat
find release/win-unpacked -type d -not -perm 755 -o -type f -not -perm 644 | xargs stat

5
fix_broken_perms.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
find release/linux-unpacked -type d | xargs chmod 755
find release/linux-unpacked -type f | xargs chmod 644
find release/win-unpacked -type d | xargs chmod 755
find release/win-unpacked -type f | xargs chmod 644