Unverified Commit 54692e3a authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Move progress (#443)

parent 029235a3
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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"