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