From e2f4222aa15bd24698e585eb0d299f3d509c31f5 Mon Sep 17 00:00:00 2001 From: Sky Faber Date: Sun, 8 Feb 2015 10:18:45 -0800 Subject: [PATCH] Cleanup user notifications when autoinstall is set --- plexupdate.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index fdc09da..ac9fdf6 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -218,19 +218,19 @@ if [ "${REDHAT}" != "yes" ]; then fi if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then + echo "File already exists, won't download." if [ "${AUTOINSTALL}" != "yes" ]; then - echo "File already exists, won't download." exit 2 fi SKIP_DOWNLOAD="yes" fi -if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then - echo "Note! File exists, but asked to overwrite with new copy" -fi - if [ "${SKIP_DOWNLOAD}" == "no" ]; then + if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then + echo "Note! File exists, but asked to overwrite with new copy" + fi + echo -ne "Downloading release \"${FILENAME}\"..." ERROR=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "${DOWNLOAD}" -O "${DOWNLOADDIR}/${FILENAME}" 2>&1) CODE=$?