From 14b26aa8facc3fb97be67b80c7e0c19a88477d73 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 17:04:23 +0200 Subject: [PATCH] test for syntax errors --- .githooks/post-checkout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index e7daf2f..b1ba8d9 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -31,7 +31,7 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then for opkg_c in "${opkg_commands[@]}"; do # check for empty lines if [ "$opkg_c" ]; then - echo "CC=$opkg_c" + echo "CC=${opkg_c}CC" # 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