Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 17:14:25 -05:00
parent 3c15e85d7a
commit 0e5188f6f8

View File

@@ -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}