diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 4c68cf86..91bdfa8f 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -403,7 +403,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ 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 + if [[ test -a ${PW_TMPFOLDER}/${SENSOR}-error.* ]]; then rm -f ${PW_TMPFOLDER}/${SENSOR}-error.* fi