From 89cf8a1e79774857c1989a643e856742970a604a Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 27 Mar 2023 12:32:11 +0200 Subject: [PATCH] fixed regex --- .githooks/post-merge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/post-merge b/.githooks/post-merge index f6a0b76..899d703 100755 --- a/.githooks/post-merge +++ b/.githooks/post-merge @@ -15,7 +15,7 @@ GIT_PULL_TMP=/tmp/git_pull OPKG_CMDS_TMP=/tmp/opkg_commands for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do - if grep -E -q ".*(DC*.json|dc/dc2c.hex|tariff*.json)" <<< $fn; then + if grep -E -q "(DC.*json|dc2c.hex|tariff.*json)" <<< $fn; then echo "$fn" >> $GIT_PULL_TMP fi if grep -E -q ".*opkg_commands" <<< $fn; then