From 103f66f044de852473d14092089c6fb0b16d6835 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 16:36:54 +0200 Subject: [PATCH] test for syntax errors --- .githooks/post-checkout | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index ab830c8..bb9f28b 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -29,10 +29,11 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then if grep -q . "${OPKG_COMMANDS_FILE}"; then readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE) for opkg_c in "${opkg_commands[@]}"; do - test -z $opkg_c && continue; - test ! -z $(grep -E "^\s*[#]+.*$" <<< $opkg_c) && continue - echo -n "EXECUTE, $opkg_c, $__date, N/A" | tr -d '\n\r' >> $GIT_UPDATE_LOG 2>&1 - echo "" >> $GIT_UPDATE_LOG 2>&1 + echo "CC=$opkg_c" + # test -z $opkg_c && continue; + # test ! -z $(grep -E "^\s*[#]+.*$" <<< $opkg_c) && continue + # echo -n "EXECUTE, $opkg_c, $__date, N/A" | tr -d '\n\r' >> $GIT_UPDATE_LOG 2>&1 + # echo "" >> $GIT_UPDATE_LOG 2>&1 done fi else