diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 1ffff6c3ef..1189a26b48 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -20,7 +20,7 @@ else exit 1 fi -STAGED_TEST_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".ts$\|.js$") +STAGED_TEST_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep "\.ts$\|\.js$") if [[ "$STAGED_TEST_FILES" = "" ]]; then echo -e "${GREEN}eslint succeded${NC}" @@ -39,4 +39,4 @@ else exit 1 fi -exit $? \ No newline at end of file +exit $?