From f342d81db2d5a1f446d84b6ddb008d3863f21e64 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 17:25:12 +0200 Subject: [PATCH] testing --- .githooks/post-checkout | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index d30bedf..db149ad 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -30,10 +30,11 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE) for opkg_c in "${opkg_commands[@]}"; do # check for empty lines - if grep -qE '^\s*$' <<< "$opkg_c"; then + echo "CCC=${opkg_c}CCC" + if grep -qE '^\s*$' <<< "${opkg_c}"; then continue fi - echo "CCC=${opkg_c}CCC" + echo "DDD=${opkg_c}DDD" # check if line is not starting with '#' if ! grep -qE "^\s*[#]+.*$" <<< "$opkg_c"; then echo -n "EXECUTE, $opkg_c, $now, N/A" | tr -d '\n\r' >> $GIT_UPDATE_LOG 2>&1