Update status.inc

This commit is contained in:
2023-12-06 21:48:59 -06:00
parent a79c28de15
commit ce24323602

View File

@@ -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