From 6212448887b0d862df2f7dd39b5adcf21e5bfcc1 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sun, 5 Mar 2017 16:32:57 -0800 Subject: [PATCH] Make cron return 0 when plexupdate returns 10 --- extras/cronwrapper | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extras/cronwrapper b/extras/cronwrapper index 40f1c65..b6b10fa 100755 --- a/extras/cronwrapper +++ b/extras/cronwrapper @@ -58,6 +58,11 @@ fi if [ $RET -ne 0 ] ; then # Make sure user gets an email about this (when not success or if user has specified when) cat ${LOGFILE} >&2 + + # Output will produce a cron email, so we can reset the exit status + if [ $RET -eq 10 ]; then + RET=0 + fi fi rm "${LOGFILE}" 2>/dev/null