Shell good practices

This commit is contained in:
Pierre Rudloff 2021-08-18 03:31:43 +00:00 committed by linsui
parent 64ef40ea8b
commit 0ecc785680
1 changed files with 1 additions and 1 deletions

View File

@ -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"