diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-11-29 22:22:35 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-11-29 22:22:35 +0300 |
commit | cbd92de9d13052febd22d54cc4481e2e5ce73841 (patch) | |
tree | 319ebd5ebd910a6d5a19f9ee005f17d6fc40be17 | |
parent | renamed the repo (diff) | |
download | linux-home-cbd92de9d13052febd22d54cc4481e2e5ce73841.tar.gz linux-home-cbd92de9d13052febd22d54cc4481e2e5ce73841.zip |
fix_permissions.sh: code style
Diffstat (limited to '')
-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 {} + |