Skip to content

Commit

Permalink
fix: Move progress
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 9, 2023
1 parent 029235a commit ba6f0fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ba6f0fc

Please sign in to comment.