From e75b602b0f453e27dafb09fcb318d8dfdc31428b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 15 Dec 2023 10:28:49 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index cadcfc35..c98fb28d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -568,13 +568,12 @@ RUN_COMMAND(){ echo "${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}" for NTYPE in "${NM_NODE_TYPES[@]}"; do echo -e "${idsST[Bold]}"; DIVIDER - echo -en "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`" + RUNCMD='' for i in {1..14}; do - [ "${i}" != "1" ] && [ "${!i}" != "" ] && echo -en " " - [ "${!i}" != "" ] && echo -en "${!i}" + [ "${i}" != "1" ] && [ "${!i}" != "" ] && RUNCMD="${RUNCMD} " + [ "${!i}" != "" ] && RUNCMD="${RUNCMD}${!i}" done - # "${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}" - echo -e "\` }${idsCL[Default]}" + echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}" DIVIDER; echo -e "${idsST[Reset]}" var=${NTYPE}_HOSTS[@] @@ -584,8 +583,8 @@ RUN_COMMAND(){ fi echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[LightCyan]} ${idsCL[LightYellow]}${LH}${idsCL[Default]}" DIVIDER false green - #echo "Running command: ${NCMD} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}" - ${NCMD} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} + #echo "Running command: ${NCMD} ${RUNCMD}" + ${NCMD} "${RUNCMD}" DIVIDER false green echo done