From 6bdd8ed2e99aefb04ce268a819fa9f994f44fad4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 27 Apr 2023 21:04:21 +0200 Subject: [PATCH] Sync --- run/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run/install.sh b/run/install.sh index 28883cf..4c4efbf 100644 --- a/run/install.sh +++ b/run/install.sh @@ -8,11 +8,13 @@ echo "Downloading ${BOOT} as boot image..." # Check if running with interactive TTY or redirected to docker log if [ -t 1 ]; then - wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress --progress=bar:noscroll + PROGRESS="--progress=bar:noscroll" else - wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress --progress=dot:giga + PROGRESS="--progress=dot:giga" fi +wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress "$PROGRESS" + [ ! -f "$TMP" ] && echo "Failed to download ${BOOT}" && exit 61 SIZE=$(stat -c%s "$TMP")