From 691370289704efb98166903668a7319f0fabb04d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Jul 2022 17:12:37 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9e76fb4e..49f616dc 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1851,7 +1851,8 @@ DOWNLIST(){ ditem=${ditem//.down} host=${ditem%%-*} item=${ditem#*-} - + if [ $ditem ?? '-' ]; then item=${ditem#*-} + else item='HOST DOWN' c=0; spc='' spc1=${cw}-${#item} echo "HERE: $downitem ~ $ditem ~ $host ~ $item ~ $spc1"