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

Produce less log bloat when downloading

parent 51987fd4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -40,7 +40,13 @@ echo "Install: Downloading $URL..."
FILE="$TMP/dsm.pat"

rm -rf $TMP && mkdir -p $TMP

# Check if running with interactive TTY or redirected to docker log
if [ -t 1 ]; then
  wget "$URL" -O "$FILE" -q --no-check-certificate --show-progress
else
  wget "$URL" -O "$FILE" -q --no-check-certificate --show-progress --progress=dot:giga
fi

[ ! -f "$FILE" ] && echo "Download failed" && exit 61