This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information...
paularmstrong committed Dec 30, 2011
1 parent d266f04 commit 62f1c470cb93e26939b04e1f67d6acee913c0d35
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.