Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
fix pre-commit hook for jslint error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong committed Dec 22, 2011
1 parent cb82fc8 commit de3ab86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/githooks/pre-commit
Expand Up @@ -32,7 +32,7 @@ done

echo 'Running JSLint...'
result=$(make lint)
if ! egrep "^0 errors" <<< $result; then
if ! egrep "[^\d]0 errors" <<< $result; then
num=$(grep "[0-9]+ error" <<< "$result")
testFail "JSLint: $num"
echo "$result"
Expand Down

0 comments on commit de3ab86

Please sign in to comment.