fix: Move progress (#443)

This commit is contained in:
Kroese 2023-12-09 06:19:07 +01:00 committed by GitHub
parent 029235a34d
commit 54692e3a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"