diff options
-rwxr-xr-x | fix_permissions.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fix_permissions.sh b/fix_permissions.sh index 8223002..eb8a98c 100755 --- a/fix_permissions.sh +++ b/fix_permissions.sh @@ -11,4 +11,6 @@ set -o errexit -o nounset -o pipefail script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" script_dir="$( cd -- "$script_dir" && pwd )" +readonly script_dir + find "$script_dir" -mindepth 1 -path "$script_dir/.git" -prune -o -exec chmod go-w {} + |