Make cron return 0 when plexupdate returns 10

This commit is contained in:
Alex Malinovich 2017-03-05 16:32:57 -08:00
commit 6212448887

View file

@ -58,6 +58,11 @@ fi
if [ $RET -ne 0 ] ; then if [ $RET -ne 0 ] ; then
# Make sure user gets an email about this (when not success or if user has specified when) # Make sure user gets an email about this (when not success or if user has specified when)
cat ${LOGFILE} >&2 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 fi
rm "${LOGFILE}" 2>/dev/null rm "${LOGFILE}" 2>/dev/null