diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 0f8dad23..b4b2e02b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1851,8 +1851,8 @@ DOWNLIST(){ ditem=${ditem//.down} host=${ditem%%-*} item=${ditem#*-} - if [ $ditem ?? '-' ]; then item=${ditem#*-} - else item='HOST DOWN'; done + if [ $ditem ?? '-' ]; then item=${ditem#*-}; + else item='HOST DOWN'; fi c=0; spc='' spc1=${cw}-${#item} echo "HERE: $downitem ~ $ditem ~ $host ~ $item ~ $spc1"