This commit is contained in:
Gerhard Hoffmann 2023-05-25 17:37:19 +02:00
parent 609cf8bc3c
commit 24f5ae1696

View File

@ -29,12 +29,11 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then
if grep -q . "${OPKG_COMMANDS_FILE}"; then if grep -q . "${OPKG_COMMANDS_FILE}"; then
readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE) readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE)
for opkg_c in "${opkg_commands[@]}"; do for opkg_c in "${opkg_commands[@]}"; do
# check for empty lines # check for empty lines
echo "CCC=${opkg_c}CCC"
if grep -qE '^[[:space:]]+$' <<< "${opkg_c}"; then if grep -qE '^[[:space:]]+$' <<< "${opkg_c}"; then
continue continue
fi fi
if [ ${#opkg_c} -eq 0 ]; then if [ "${#opkg_c}" -eq 0 ]; then
continue continue
fi fi
echo "DDD=${#opkg_c}DDD" echo "DDD=${#opkg_c}DDD"