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"