From 6884a8e1d4f0016c3b527d2494a97603d7f02ce7 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 5 Dec 2016 16:28:14 -0800 Subject: [PATCH] Don't enable -P in installer if we know it won't work --- extras/installer.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extras/installer.sh b/extras/installer.sh index a33df9e..9cde89e 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -339,9 +339,12 @@ configure_cron echo echo -n "Configuration complete. Would you like to run plexupdate with these settings now? " if yesno; then + if wget --show-progress -V &> /dev/null; then + PROGRESS_OPT="-P" + fi if [ "$AUTOINSTALL" == "yes" ]; then - sudo "$FULL_PATH/plexupdate.sh" -P --config "$CONFIGFILE" + sudo "$FULL_PATH/plexupdate.sh" $PROGRESS_OPT --config "$CONFIGFILE" else - "$FULL_PATH/plexupdate.sh" -P --config "$CONFIGFILE" + "$FULL_PATH/plexupdate.sh" $PROGRESS_OPT --config "$CONFIGFILE" fi fi