From 18cbe94b03572f8f30c41184887d00b8d235ba82 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Dec 2023 14:20:19 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index c8b50ae0..e37c171d 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -402,8 +402,7 @@ 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.* - fi - if test -a ${PW_TMPFOLDER}/${SENSOR}-error.* ; then + elif [ "$(ls ${PW_TMPFOLDER}/${SENSOR}-error.*)" != "" ]; then rm -f ${PW_TMPFOLDER}/${SENSOR}-error.* fi