From 94af7bc9e0ad5352974056061f155f9417e1d2b7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 9 May 2024 10:15:45 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 242f2728..aa1a9ea3 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -918,11 +918,7 @@ DOWNLIST(){ fi [ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) " - if [ -f ${NM_TMPFOLDER}/${ditem}.disable ] || ([[ "${host}" = *"10.2."* ]] && [ -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ]); then - dstatus="OFF" - else - dstatus="${idsCL[Green]}ON" - fi + ([ -f ${NM_TMPFOLDER}/${ditem}.disable ] || ([[ "${host}" = *"10.2."* ]] && [ -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ])) && dstatus="OFF" || dstatus="${idsCL[Green]}ON" c=0; spc3=''; until [ $c = `expr 26 - ${#time}` ]; do spc3="${spc3} "; ((c++)); done echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}" fi