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