mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
fix: Move progress (#443)
This commit is contained in:
parent
029235a34d
commit
54692e3a75
@ -40,13 +40,6 @@ if [ -z "$URL" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if output is to interactive TTY
|
||||
if [ -t 1 ]; then
|
||||
PROGRESS="--progress=bar:noscroll"
|
||||
else
|
||||
PROGRESS="--progress=dot:giga"
|
||||
fi
|
||||
|
||||
BASE=$(basename "$URL" .pat)
|
||||
|
||||
if [[ "$URL" != "file://${STORAGE}/${BASE}.pat" ]]; then
|
||||
@ -96,6 +89,13 @@ if [[ "$TMP" != "$STORAGE/tmp" ]]; then
|
||||
(( MIN_SPACE > SPACE )) && error "Not enough free space for installation in ${STORAGE}, have ${SPACE_GB} GB available but need at least 6 GB." && exit 94
|
||||
fi
|
||||
|
||||
# Check if output is to interactive TTY
|
||||
if [ -t 1 ]; then
|
||||
PROGRESS="--progress=bar:noscroll"
|
||||
else
|
||||
PROGRESS="--progress=dot:giga"
|
||||
fi
|
||||
|
||||
# Download the required files from the Synology website
|
||||
|
||||
RDC="$STORAGE/dsm.rd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user