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