Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix pre-commit hook for jslint error checking

  • Loading branch information...
commit de3ab86eb90953b36814273d6db84be56e4a1cd5 1 parent cb82fc8
@paularmstrong authored
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"
Please sign in to comment.
Something went wrong with that request. Please try again.