Update temp.inc.sh

This commit is contained in:
2023-12-26 19:31:16 -06:00
parent fab1564302
commit 23b0526664

View File

@@ -319,8 +319,7 @@ CHECKTEMP_SERVICE(){
for sensor in ${PW_TMPFOLDER}/zservicerun.*.done; do
SENSORa=$(grep -oP '(?<=zservicerun.).*?(?=.done)' <<< "${nodestatus}")
if [ "${SENSORa}" != "*" ]; then
rm -f ${sensor}
((s_count++))
rm -f ${sensor} && ((s_count++))
# echo "${NTS} == ${s_count} == ${nodestatus}"
fi
done