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[@]