diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-09-02 22:32:09 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-09-02 22:32:09 +0300 |
commit | 8b0e9bd7058c9e1c4929f46c436cee659648a350 (patch) | |
tree | 1a209753676beb9983ac47fa3c23d843ff0f7114 | |
parent | .gitconfig: add comment to alias.xx (diff) | |
download | linux-home-8b0e9bd7058c9e1c4929f46c436cee659648a350.tar.gz linux-home-8b0e9bd7058c9e1c4929f46c436cee659648a350.zip |
fix_permissions.sh: exclude .git/ properly
-rwxr-xr-x | fix_permissions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fix_permissions.sh b/fix_permissions.sh index 65974b9..ff0489b 100755 --- a/fix_permissions.sh +++ b/fix_permissions.sh @@ -4,4 +4,4 @@ set -o errexit -o nounset -o pipefail script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" script_dir="$( cd -- "$script_dir" && pwd )" -find "$script_dir" -mindepth 1 -path ./.git -prune -o -exec chmod g-w {} + +find "$script_dir" -mindepth 1 -path "$script_dir/.git" -prune -o -exec chmod g-w {} + |