From 02b3ecf72647e51bfd4a207e37fb4813bc3dbfb0 Mon Sep 17 00:00:00 2001 From: hakong Date: Sun, 26 Jun 2016 23:25:32 +0000 Subject: [PATCH] Cron mode should not exit with non-zero if up to date If plex is up to date, cron mode should exit with 0. --- plexupdate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index 17a8819..c50004f 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -372,8 +372,9 @@ fi if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" ] && [ ! -z "${INSTALLED_VERSION}" ]; then if [ "${CRON}" = "no" ]; then echo "Your OS reports the latest version of Plex ($INSTALLED_VERSION) is already installed. Use -f to force download." + exit 5 fi - exit 5 + exit 0 fi if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then