From bc5f02239ea0953d9a81ffd7798a483e785de354 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 1 Dec 2024 18:34:47 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3bab328d..e4e647bd 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -771,7 +771,7 @@ BACKUP_UNIFINVR(){ } RUN_COMMAND(){ - while [ $# -gt 0 ]; do + while [ "$#" -gt 0 ]; do case "${1}" in -nt|-nodetype) nodetype=${2^^};; -cmd) RUNCMD="${2}";; @@ -779,6 +779,7 @@ RUN_COMMAND(){ shift done if [ "${nodetype}" == "ALL" ] || [ -n "${nodetype}" ]; then + nodetype=ALL NT_HOSTS=ALL_HOSTS[@] NTS=(${NM_NODE_TYPES[*]}) elif [ "${nodetype}" != "" ]; then