From 23b05266642ecdc30d3c79a89af23bdb274ff1e1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 19:31:16 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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