diff --git a/inc/status.inc b/inc/status.inc index d78b647a..124e0aba 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -7,15 +7,12 @@ STATUS(){ [ "${ST_ACTION}" == "sync" ] && ST_ACTION=repl declare -i cw; declare -i spc1; declare -i c - ntypesel="" - for NTYPE in "${NM_NODE_TYPES[@]}"; do - if [ "${ST_ACTION^^}" == "${NTYPE}" ]; then - ntypesel=${NTYPE} - ST_ACTION=${2} - break - fi - done - [ "${ntypesel}" != "" ] && ntypesel=(${ntypesel}) || ntypesel=(${NM_NODE_TYPES[@]}) + if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then + ntypesel=(${ST_ACTION^^}) + ST_ACTION=${2} + else + ntypesel=(${NM_NODE_TYPES[@]}) + fi ############################ ## REPLICATION CHECK SETUP