From 2fe64253117b1dc0fe795140e74741296694e055 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Dec 2023 14:13:22 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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