Fixed typo

This commit is contained in:
Gerhard Hoffmann 2023-03-31 09:01:13 +02:00
parent 5f3a7608ba
commit cc75917193

View File

@ -14,12 +14,14 @@ fi
GIT_PULL_TMP=/tmp/git_pull GIT_PULL_TMP=/tmp/git_pull
OPKG_CMDS_TMP=/tmp/opkg_commands OPKG_CMDS_TMP=/tmp/opkg_commands
rm -f $OPKG_PULL_TMP rm -f $GIT_PULL_TMP
rm -f $OPKG_CMDS_TMP rm -f $OPKG_CMDS_TMP
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then
echo "$fn" >> $GIT_PULL_TMP local fsize=$(ls -l $fn | awk '{ print $5 }')
# add size so external programs can check
echo "$fn $fsize" >> $GIT_PULL_TMP
fi fi
if grep -E -q ".*opkg_commands" <<< $fn; then if grep -E -q ".*opkg_commands" <<< $fn; then
readarray opkg_commands < <(cat $fn) readarray opkg_commands < <(cat $fn)