diff options
author | Ben Sima <ben@bsima.me> | 2022-08-08 10:01:32 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-08-08 10:01:32 -0400 |
commit | cd6f38a2e8d5b2f4198831aae0a37c568c69c2ae (patch) | |
tree | 8546248171260064e3d8e352a1a0de46707353b4 /Biz/Ide/hooks/pre-commit | |
parent | e9d639f7d6f21498c450db36d46e1e6ac6c0b17e (diff) |
Ensure BIZ_ROOT is set in shell scripts
Diffstat (limited to 'Biz/Ide/hooks/pre-commit')
-rwxr-xr-x | Biz/Ide/hooks/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
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 |