blob: 507d7e61aac7933c4b618bddf818f4b073a21342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env bash
#
# - prevent frozen code from being checked in
# - guard against lint errors
##
set -e
changed=($(git diff-index --cached --name-only HEAD))
for ns in ${changed[@]}
do
version=$($BIZ_ROOT/Biz/Ide/version $ns)
if (( $version < 1 )); then
echo "fail: version: $ns: $version"
exit 1
else
echo "info: version: $ns: $version"
fi
done
$BIZ_ROOT/Biz/Ide/lint **/*
##
|