From 6932ee924d8849b16827da14368e22a389535d00 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Fri, 9 Feb 2018 19:21:45 -0800 Subject: [PATCH] Update FORCE option to only redownload if checksum fails --- plexupdate.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index d04c590..b0a138d 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -72,8 +72,7 @@ usage() { echo "" echo " -a Auto install if download was successful (requires root)" echo " -d Auto delete after auto install" - echo " -f Force download even if it's the same version or file" - echo " already exists unless checksum passes" + echo " -f Force download/update even if the newest release is already installed" echo " -h This help" echo " -l List available builds and distros" echo " -p Public Plex Media Server version" @@ -452,7 +451,7 @@ if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" ] && [ ! -z exit 0 fi -if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then +if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then if sha1sum --status -c "${FILE_SHA}"; then info "File already exists (${FILENAME}), won't download." if [ "${AUTOINSTALL}" != "yes" ]; then