From fa6593511133dbb6e1b518a6de1c772888781c4f Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sat, 4 Dec 2021 16:41:21 +0100 Subject: [PATCH] CI: lint: fix not working as pre-commit symlink (MR 19) Throw in another realpath, so TOPDIR works as expected after: ln -s $PWD/.ci/lint.sh .git/hooks/pre-commit --- .ci/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/lint.sh b/.ci/lint.sh index b6b22c0..7c68e6a 100755 --- a/.ci/lint.sh +++ b/.ci/lint.sh @@ -7,7 +7,7 @@ # simple shell script for now. This script needs find and GNU grep (for -P) and # a shell that knows "local". -TOPDIR="$(realpath "$(dirname "$0")/..")" +TOPDIR="$(realpath "$(dirname "$(realpath "$0")")/..")" CURRENT_FILE="" EXIT_CODE=0