diff --git a/.githooks/post-checkout b/.githooks/post-checkout index bfcad4e..5584931 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -30,7 +30,8 @@ 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 [ -n "$opkg_c" ]; then + if [[ -n $opkg_c ]]; then + echo "CC=$opkg_c" # 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