From 0e5188f6f851ccb7db5e84d41671b07334e2384d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Jul 2022 17:14:25 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}