mirror of
https://github.com/dockur/windows-arm.git
synced 2024-11-17 18:51:49 +00:00
fix: Progress
This commit is contained in:
parent
89aeb9398c
commit
dc7a1a667a
1 changed files with 7 additions and 0 deletions
|
@ -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=$?; } || :
|
||||
|
||||
|
|
Loading…
Reference in a new issue