diff options
Diffstat (limited to 'Biz/Ide/hooks')
-rwxr-xr-x | Biz/Ide/hooks/pre-commit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Biz/Ide/hooks/pre-commit b/Biz/Ide/hooks/pre-commit index 507d7e6..31a4e68 100755 --- a/Biz/Ide/hooks/pre-commit +++ b/Biz/Ide/hooks/pre-commit @@ -8,7 +8,9 @@ for ns in ${changed[@]} do version=$($BIZ_ROOT/Biz/Ide/version $ns) - if (( $version < 1 )); then + if (( $version == -1 )); then + echo "info: version: $ns: deleted" + elif (( $version < 1 )); then echo "fail: version: $ns: $version" exit 1 else |