Skip to content
Browse files

weird stuff happening with pre-commit hook for jslint lately...

  • Loading branch information...
1 parent d266f04 commit 62f1c470cb93e26939b04e1f67d6acee913c0d35 @paularmstrong committed Dec 30, 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 "[^\d]0 errors" <<< $result; then
+if ! egrep "^0 errors" <<< $result; then
num=$(grep "[0-9]+ error" <<< "$result")
testFail "JSLint: $num"
echo "$result"

0 comments on commit 62f1c47

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