Update nodemgmt-scripts.sh
This commit is contained in:
@@ -778,7 +778,6 @@ RUN_COMMAND(){
|
||||
esac
|
||||
shift
|
||||
done
|
||||
echo "NODETYPE1= '${nodetype}'"
|
||||
if [ "${nodetype}" == "ALL" ] || [ -z ${nodetype+x} ]; then
|
||||
nodetype=ALL
|
||||
NT_HOSTS=ALL_HOSTS[@]
|
||||
@@ -792,7 +791,10 @@ RUN_COMMAND(){
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z ${RUNCMD+x} ]; then
|
||||
echo -e "${idsCL[Red]}No command specified to run. (Use -cmd "{command}")${idsCL[Default]}"
|
||||
exit 1
|
||||
fi
|
||||
for NTYPE in "${NTS[@]}"; do
|
||||
echo -e "${idsST[Bold]}"; DIVIDER
|
||||
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user