From 9d559564851dada536574ca176ba58f8921fdf53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 15 Dec 2023 10:23:57 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8c673d1c..be7587af 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -570,10 +570,10 @@ RUN_COMMAND(){ echo -e "${idsST[Bold]}"; DIVIDER echo -en "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`" for i in {1..14}; do - echo -en "${!i} " + [ "${!i}" != "" ] && echo -en "${!i} " done # "${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}" - echo "\` }${idsCL[Default]}" + echo -e "\` }${idsCL[Default]}" DIVIDER; echo -e "${idsST[Reset]}" var=${NTYPE}_HOSTS[@]