From 1ab2d7a15fb61d8063474bb51713cda92b5bb7e2 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 20:49:39 +0200 Subject: [PATCH] Wget progress type --- run/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run/install.sh b/run/install.sh index f7ae812..469c8d9 100644 --- a/run/install.sh +++ b/run/install.sh @@ -60,11 +60,13 @@ rm -f "$PAT" # Check if running with interactive TTY or redirected to docker log if [ -t 1 ]; then - wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress --progress=bar:noscroll + PROGRESS="--progress=bar:noscroll" else - wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress --progress=dot:giga + PROGRESS="--progress=dot:giga" fi +wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS" + [ ! -f "$PAT" ] && echo "Download failed" && exit 61 SIZE=$(stat -c%s "$PAT")