Update nodemgmt-scripts.sh

This commit is contained in:
2024-12-01 18:37:21 -06:00
parent 0f5e2a294c
commit c74d322e3f

View File

@@ -771,15 +771,14 @@ BACKUP_UNIFINVR(){
}
RUN_COMMAND(){
while [ "$#" -gt 0 ]; do
case "${1}" in
while [ $# -gt 0 ]; do
case ${1} in
-nt|-nodetype) nodetype=${2^^};;
-cmd) RUNCMD="${2}";;
-cmd) RUNCMD=${2};;
esac
shift
done
if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then
echo yes
nodetype=ALL
NT_HOSTS=ALL_HOSTS[@]
NTS=(${NM_NODE_TYPES[*]})
@@ -794,7 +793,7 @@ RUN_COMMAND(){
fi
echo "NODETYPE= '${nodetype}'"
echo "RUNCMD= '${RUNCMD}'"
echo "RUNCMD= ${RUNCMD}"
# for NTYPE in "${NTS[@]}"; do
# echo -e "${idsST[Bold]}"; DIVIDER