From 8b0e9bd7058c9e1c4929f46c436cee659648a350 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 2 Sep 2017 22:32:09 +0300 Subject: fix_permissions.sh: exclude .git/ properly --- fix_permissions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {} + -- cgit v1.2.3