Skip to content
Browse files

fix pre-commit hook for jslint error checking

  • Loading branch information...
1 parent cb82fc8 commit de3ab86eb90953b36814273d6db84be56e4a1cd5 @paularmstrong committed Dec 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/githooks/pre-commit
View
2 scripts/githooks/pre-commit
@@ -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"

0 comments on commit de3ab86

Please sign in to comment.
Something went wrong with that request. Please try again.