Update nodemgmt-scripts.sh
This commit is contained in:
@@ -774,11 +774,12 @@ RUN_COMMAND(){
|
|||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
echo "HERE: $1 $2"
|
echo "HERE: $1 $2"
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-nt|-nodetype) nodetype=${2^^};;
|
-nt) nodetype=${2^^};;
|
||||||
-cmd) RUNCMD="${2}";;
|
-cmd) RUNCMD="${2}";;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
echo "NODETYPE1= '${nodetype}'"
|
||||||
if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then
|
if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then
|
||||||
echo 1
|
echo 1
|
||||||
nodetype=ALL
|
nodetype=ALL
|
||||||
@@ -797,7 +798,7 @@ RUN_COMMAND(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "NODETYPE= '${nodetype}'"
|
echo "NODETYPE2= '${nodetype}'"
|
||||||
echo "RUNCMD= '${RUNCMD}'"
|
echo "RUNCMD= '${RUNCMD}'"
|
||||||
|
|
||||||
# for NTYPE in "${NTS[@]}"; do
|
# for NTYPE in "${NTS[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user