From 0ecc785680f9fd5745617b5e4e95cbb7cdcfeb00 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 18 Aug 2021 03:31:43 +0000 Subject: [PATCH] Shell good practices --- hooks/install-hooks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/install-hooks.sh b/hooks/install-hooks.sh index 69b314d4a6..7ee09eb58e 100755 --- a/hooks/install-hooks.sh +++ b/hooks/install-hooks.sh @@ -2,7 +2,7 @@ # # Install all the client hooks -BASE_DIR="$(cd $(dirname $0); pwd -P)" +BASE_DIR="$(cd "$(dirname "$0")" && pwd -P)" HOOK_NAMES="applypatch-msg pre-applypatch post-applypatch pre-commit prepare-commit-msg commit-msg post-commit pre-rebase post-checkout post-merge pre-receive update post-receive post-update pre-auto-gc" HOOK_DIR="$(git rev-parse --show-toplevel)/.git/hooks"