Update nodemgmt-scripts.sh

This commit is contained in:
2024-12-01 18:49:35 -06:00
parent 32772f7db9
commit 2d9e074857

View File

@@ -778,7 +778,6 @@ RUN_COMMAND(){
esac
shift
done
echo "NODETYPE1= '${nodetype}'"
if [ "${nodetype}" == "ALL" ] || [ -z ${nodetype+x} ]; then
nodetype=ALL
NT_HOSTS=ALL_HOSTS[@]
@@ -792,7 +791,10 @@ RUN_COMMAND(){
exit 1
fi
fi
if [ -z ${RUNCMD+x} ]; then
echo -e "${idsCL[Red]}No command specified to run. (Use -cmd "{command}")${idsCL[Default]}"
exit 1
fi
for NTYPE in "${NTS[@]}"; do
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}"