mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
Produce less log bloat when downloading
This commit is contained in:
parent
0fa58644a5
commit
dc145230ac
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user