Update temp.inc.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user