diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 9474a939..4c68cf86 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -402,7 +402,8 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ SENDNOTICE "${SENSOR} Data" "${SENSOR} is reporting data again" echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is reporting data again" >> ${logtemp} rm -f ${PW_TMPFOLDER}/${SENSOR}-error.* - elif [ -f ${PW_TMPFOLDER}/${SENSOR}-error.* ]; then + fi + if [ test -a ${PW_TMPFOLDER}/${SENSOR}-error.* ]; then rm -f ${PW_TMPFOLDER}/${SENSOR}-error.* fi