Produce less log bloat when downloading

This commit is contained in:
Kroese 2023-04-11 22:37:36 +02:00 committed by GitHub
parent 0fa58644a5
commit dc145230ac

View File

@ -40,7 +40,13 @@ echo "Install: Downloading $URL..."
FILE="$TMP/dsm.pat"
rm -rf $TMP && mkdir -p $TMP
wget "$URL" -O "$FILE" -q --no-check-certificate --show-progress
# 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