From 89ba516fa8651cb0aa6ccb0b457d4eeb328d6934 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 16 Nov 2023 08:23:48 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 888f9cb1..b465cbce 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -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