From cc7591719397f19f75eecd04e410d45b6a55a705 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 31 Mar 2023 09:01:13 +0200 Subject: [PATCH] Fixed typo --- .githooks/post-merge | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.githooks/post-merge b/.githooks/post-merge index a564abf..725dc76 100755 --- a/.githooks/post-merge +++ b/.githooks/post-merge @@ -14,12 +14,14 @@ fi GIT_PULL_TMP=/tmp/git_pull OPKG_CMDS_TMP=/tmp/opkg_commands -rm -f $OPKG_PULL_TMP +rm -f $GIT_PULL_TMP rm -f $OPKG_CMDS_TMP 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 - 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 if grep -E -q ".*opkg_commands" <<< $fn; then readarray opkg_commands < <(cat $fn)