diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 52bc9993..b51f8c8e 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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