Skip to content

Commit 73b0736

Browse files
committed
fix: progress bar not working for linux installer
1 parent ef6953b commit 73b0736

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/linux/installer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,14 +486,14 @@ downloadAndInstall(){
486486
# Set options based on wget version
487487
WGET_OPTS=$(configure_wget_options)
488488

489-
wget $WGET_OPTS "$TMP_DIR/phoenix-code.tar.gz" "$BEST_MATCH_URL" 2>/dev/null || {
489+
wget $WGET_OPTS "$TMP_DIR/phoenix-code.tar.gz" "$BEST_MATCH_URL" || {
490490
echo -e "${RED}Failed to download the binary. Please check your internet connection and try again.${RESET}"
491491
exit 1
492492
}
493493

494494
# Download the icon
495495
echo -e "Downloading the icon..."
496-
wget $WGET_OPTS "$TMP_DIR/icon.png" "$ICON_URL" 2>/dev/null|| {
496+
wget $WGET_OPTS "$TMP_DIR/icon.png" "$ICON_URL" || {
497497
echo -e "${RED}Failed to download the icon${RESET}"
498498
exit 1
499499
}
@@ -515,7 +515,7 @@ configure_wget_options() {
515515
local major_version=$(echo "$wget_version" | cut -d. -f1)
516516

517517
if [[ "$major_version" -ge 2 ]]; then
518-
echo "-c -N --tries=10 --timeout=30 --waitretry=5 --progress=bar --retry-connrefused -O"
518+
echo "-c --tries=10 --timeout=30 --waitretry=5 --progress=bar --retry-connrefused -O"
519519
else
520520
echo "-c -N --tries=10 --timeout=30 --waitretry=5 --retry-connrefused --show-progress -qO"
521521
fi

0 commit comments

Comments
 (0)