Skip to content

Commit 75aecc7

Browse files
authored
refactor: even also scan recursive (#672)
1 parent 3bd61bc commit 75aecc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ for check_function in "${CHECK_FUNCTIONS[@]}"; do
5353
# Call the check function to set variables
5454
$check_function
5555

56-
if echo "$FILES" | grep -qE "$PATTERN"; then
56+
if echo "$FILES" | grep --quiet --extended-regexp --recursive "$PATTERN"; then
5757
echo "Detected changes in $DESCRIPTION"
5858

5959
## Run the corresponding command

0 commit comments

Comments
 (0)