Update temp.inc.sh

This commit is contained in:
2023-12-30 14:25:53 -06:00
parent 18cbe94b03
commit ed8f799f82

View File

@@ -402,7 +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.*
elif [ "$(ls ${PW_TMPFOLDER}/${SENSOR}-error.*)" != "" ]; then
elif [ $(ls ${PW_TMPFOLDER}/${SENSOR}-error.* 2>/dev/null | wc -l) -gt 0 ]; then
rm -f ${PW_TMPFOLDER}/${SENSOR}-error.*
fi