jshint pre-commit to stop checking json files

This commit is contained in:
Nick Nisi
2013-12-13 12:41:13 -06:00
parent ff93d07905
commit f10259a5f7

View File

@@ -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