Update nodemgmt-scripts.sh

This commit is contained in:
2024-12-01 18:44:33 -06:00
parent 295d1baa82
commit b73cfac202

View File

@@ -774,11 +774,12 @@ RUN_COMMAND(){
while [ $# -gt 0 ]; do
echo "HERE: $1 $2"
case "${1}" in
-nt|-nodetype) nodetype=${2^^};;
-nt) nodetype=${2^^};;
-cmd) RUNCMD="${2}";;
esac
shift
done
echo "NODETYPE1= '${nodetype}'"
if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then
echo 1
nodetype=ALL
@@ -797,7 +798,7 @@ RUN_COMMAND(){
fi
fi
echo "NODETYPE= '${nodetype}'"
echo "NODETYPE2= '${nodetype}'"
echo "RUNCMD= '${RUNCMD}'"
# for NTYPE in "${NTS[@]}"; do