From c74d322e3f3525f3daf618514b3eba6015fb2cdd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 1 Dec 2024 18:37:21 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 2771df7a..3a7465c3 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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