From dc7a1a667adc98c8d980577cb28276a85d393468 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 14 Jan 2024 17:25:33 +0100 Subject: [PATCH] fix: Progress --- src/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/install.sh b/src/install.sh index 40a70f4..e633126 100644 --- a/src/install.sh +++ b/src/install.sh @@ -6,6 +6,13 @@ set -Eeuo pipefail BASE="$VERSION.iso" [ -f "$STORAGE/$BASE" ] && return 0 +# Check if running with interactive TTY or redirected to docker log +if [ -t 1 ]; then + PROGRESS="--progress=bar:noscroll" +else + PROGRESS="--progress=dot:giga" +fi + URL="https://raw.githubusercontent.com/ElliotKillick/Mido/main/Mido.sh" { wget "$URL" -O "$STORAGE/Mido.sh" -q --no-check-certificate; rc=$?; } || :