Skip to content

Commit

Permalink
ci: fix eslint precommit regex
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Oct 9, 2023
1 parent c3c95ca commit ff74635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -39,4 +39,4 @@ else
exit 1
fi

exit $?
exit $?

0 comments on commit ff74635

Please sign in to comment.