From ff74635c138f9636d4ddcd8faa661a8ca56a191c Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Mon, 9 Oct 2023 15:59:04 +0200 Subject: [PATCH] ci: fix eslint precommit regex --- .githooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 $?