From f10259a5f7e5546e1c02145770be70afc9690bf2 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Fri, 13 Dec 2013 12:41:13 -0600 Subject: [PATCH] jshint pre-commit to stop checking json files --- git/hooks/jshint.pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/hooks/jshint.pre-commit b/git/hooks/jshint.pre-commit index 20a1faf..f3908ef 100755 --- a/git/hooks/jshint.pre-commit +++ b/git/hooks/jshint.pre-commit @@ -11,7 +11,7 @@ COLOR_NONE="\x1B[0m" repo=$( git rev-parse --show-toplevel ) for file in $( exec git diff-index --cached --name-only HEAD ); do - if [[ $file == *".js"* ]]; then + if [[ $file == *".js$"* ]]; then status=$( exec git status --porcelain $file ) if [[ $status != D* ]]; then