From dbd63fd416fd56f824aadf1a6a38b33508153506 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 21:03:02 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 7a866467..9872aac4 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -147,8 +147,8 @@ STATUS(){ nc_count=0; completed=false until [ "${completed}" == "true" ]; do for nodestatus in ${STATUSRUN_TMPFOLDER}/status-check.*.done; do - if [ "${nodestatus}" != "*" ]; then - NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}") + NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}") + if [ "${NTS}" != "*" ]; then # echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.running)" rm -f ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.done ((nc_count++))