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