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"