mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Make cron return 0 when plexupdate returns 10
This commit is contained in:
parent
6294d93e10
commit
6212448887
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue