From cd6f38a2e8d5b2f4198831aae0a37c568c69c2ae Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 8 Aug 2022 10:01:32 -0400 Subject: Ensure BIZ_ROOT is set in shell scripts --- Biz/Ide/hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Biz/Ide/hooks/pre-commit') diff --git a/Biz/Ide/hooks/pre-commit b/Biz/Ide/hooks/pre-commit index fe4bbe3..065a0f6 100755 --- a/Biz/Ide/hooks/pre-commit +++ b/Biz/Ide/hooks/pre-commit @@ -7,7 +7,7 @@ changed=($(git diff-index --cached --name-only HEAD)) for ns in ${changed[@]} do - version=$($BIZ_ROOT/Biz/Ide/version $ns) + version=$(${BIZ_ROOT:?}/Biz/Ide/version $ns) if (( $version == -1 )); then echo "info: version: $ns: deleted" elif (( $version < 1 )); then -- cgit v1.2.3