mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Store correct exit status in cronwrapper if LOGGING is set
This commit is contained in:
parent
89a59cf923
commit
8744339dfc
1 changed files with 1 additions and 3 deletions
|
@ -45,9 +45,7 @@ LOGFILE=$(mktemp /tmp/plexupdate.cron.XXXX)
|
|||
RET=0
|
||||
if $LOGGING; then
|
||||
"${SCRIPT}" "${CONF}" 2>&1 | tee ${LOGFILE} | logger -t plexupdate -p daemon.info
|
||||
if grep -q '^ERROR:' ${LOGFILE}; then
|
||||
RET=1
|
||||
fi
|
||||
RET="${PIPESTATUS[0]}"
|
||||
else
|
||||
"${SCRIPT}" "${CONF}" >${LOGFILE} 2>&1
|
||||
RET=$?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue