Print more debug info

This commit is contained in:
Kroese 2023-05-02 00:13:30 +02:00 committed by GitHub
parent 8a440e987b
commit d77710f613

View file

@ -13,6 +13,8 @@ else
PROGRESS="--progress=dot:giga" PROGRESS="--progress=dot:giga"
fi fi
[ "$DEBUG" = "Y" ] && set -x
{ wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || : { wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || :
(( rc != 0 )) && echo "ERROR: Failed to download ${BOOT}, reason: $rc" && exit 60 (( rc != 0 )) && echo "ERROR: Failed to download ${BOOT}, reason: $rc" && exit 60
@ -27,3 +29,6 @@ fi
FILE="$STORAGE/boot.img" FILE="$STORAGE/boot.img"
mv -f "$TMP" "$FILE" mv -f "$TMP" "$FILE"
{ set +x; } 2>/dev/null
[ "$DEBUG" = "Y" ] && echo