Skip to content

Commit aa09117

Browse files
author
Seth Schoen
committed
trivial-validate --quiet; also, it can exit 3, not just 1
1 parent 2e0cf88 commit aa09117

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hooks/precommit

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ if [ "$CHANGED_RULESETS" ]; then
3939
continue
4040
fi
4141

42-
# Errors will go to stderr.
43-
./utils/trivial-validate.py $FILE > /dev/null
42+
./utils/trivial-validate.py --quiet $FILE
4443
RESULT=$?
4544

46-
if [ $RESULT -eq 1 ]; then
45+
if [ $RESULT -ne 0 ]; then
4746
echo "$(date -R): Failure encountered during ruleset validation."
4847
exit $RESULT
4948
fi

0 commit comments

Comments
 (0)