Update status.inc
This commit is contained in:
@@ -9,8 +9,26 @@ STATUS(){
|
||||
ST_ACTION=repl
|
||||
fi
|
||||
declare -i cw; declare -i spc1; declare -i c
|
||||
|
||||
ntypesel=""
|
||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||
if [ "${ST_ACTION}" == "${NTYPE}" ]; then
|
||||
ntypesel=${NTYPE}
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ "${ntypesel}" != "" ]; then
|
||||
ntypesel=(${ntypesel})
|
||||
else
|
||||
ntypesel=$NM_NODE_TYPES[@]
|
||||
fi
|
||||
|
||||
for NTYPE in "${!ntypesel}"; do
|
||||
echo "HERE: $NTYPE"
|
||||
done
|
||||
|
||||
########################
|
||||
if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "" ]; then
|
||||
if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "xx" ]; then
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}"
|
||||
fi
|
||||
@@ -112,22 +130,6 @@ STATUS(){
|
||||
if [ "${ST_ACTION}" != "check" ]; then echo; fi
|
||||
fi
|
||||
########################
|
||||
ntypesel=""
|
||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||
if [ "${ST_ACTION}" == "${NTYPE}" ]; then
|
||||
ntypesel=${NTYPE}
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ "${ntypesel}" != "" ]; then
|
||||
ntypesel=(${ntypesel})
|
||||
else
|
||||
ntypesel=$NM_NODE_TYPES[@]
|
||||
fi
|
||||
|
||||
for NTYPE in "${!ntypesel}"; do
|
||||
echo "HERE: $NTYPE"
|
||||
done
|
||||
|
||||
for NTYPE in "${NM_NODE_TYPESsss[@]}"; do
|
||||
nid=1
|
||||
|
||||
Reference in New Issue
Block a user