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

Commit

Permalink
weird stuff happening with pre-commit hook for jslint lately...
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong committed Dec 30, 2011
1 parent d266f04 commit 62f1c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 62f1c47

Please sign in to comment.