fixed regex

This commit is contained in:
Gerhard Hoffmann 2023-03-27 12:32:11 +02:00
parent 406bacd457
commit 89cf8a1e79

View File

@ -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