Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user