Unverified Commit c7a54810 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Wget progress type

Wget progress type
parents 27cd6cf7 6951a11d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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")