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