From ef9ec3a9bbb99a0ba766b0c2dfedd76643285dcd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 8 Nov 2023 21:09:05 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 11f863e7..6b943344 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -715,7 +715,7 @@ DOWNLIST(){ else echo -e "${idsCL[LightGreen]}Current List of Items Down...${idsCL[Default]}" DIVIDER false yellow 95 - [ "${1}" == "ignore" ] && ignsel=" " || ignsel="" + [ "${1}" == "ignore" ] && ignsel=" " || ignsel="" echo -e "${idsCL[Yellow]}${ignsel}Service/Host Host Down_Time${idsCL[Default]}" DIVIDER false yellow 95 @@ -726,7 +726,7 @@ DOWNLIST(){ host=${ditem%%~*} item=${ditem#*~} if [ "${1}" == "ignore" ]; then - [ ${is} -lt 10 ] && ignsel=" ${is})" || ignsel="${is})" + [ ${is} -lt 10 ] && ignsel=" ${is})" || ignsel="${is}) " else ignsel="" fi @@ -755,8 +755,9 @@ DOWNLIST(){ c=0; spc2='' spc1=${cw2}-${#itemname}-${#host}-${spc1} until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done - echo -e "${ignsel}${idsST[Bold]}${idsCL[Red]}${itemname}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsST[Reset]}${idsCL[Default]}" + echo -e "${idsCL[Red]}${ignsel}${idsST[Bold]}${itemname}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsST[Reset]}${idsCL[Default]}" DIVIDER false darkGray 90 + ((is++)) done fi echo