From 24f5ae1696bf8811d0d723e7eef594d39e2ffb5f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 17:37:19 +0200 Subject: [PATCH] testing --- .githooks/post-checkout | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index afd5c2c..6f15d46 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -29,12 +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 - # check for empty lines - echo "CCC=${opkg_c}CCC" + # check for empty lines if grep -qE '^[[:space:]]+$' <<< "${opkg_c}"; then continue fi - if [ ${#opkg_c} -eq 0 ]; then + if [ "${#opkg_c}" -eq 0 ]; then continue fi echo "DDD=${#opkg_c}DDD"