Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ab9edb

Browse filesBrowse files
author
Seth Schoen
committed
trivial-validate --quiet; also, it can exit 3, not just 1
1 parent 2763824 commit 5ab9edb
Copy full SHA for 5ab9edb

1 file changed

+2-3Lines changed: 2 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎hooks/precommit‎

Copy file name to clipboardExpand all lines: hooks/precommit
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.