Update status.inc

This commit is contained in:
2023-12-06 23:48:06 -06:00
parent d6fd84ae48
commit dbdc80d35d

View File

@@ -3,16 +3,18 @@ STATUS(){
start=$(date +%s) start=$(date +%s)
log_start=$(date "+%Y-%m-%d %H:%M:%S") log_start=$(date "+%Y-%m-%d %H:%M:%S")
if [ "${1}" == "status" ] && [ "${2}" == "report" ]; then if [ "${1}" == "report" ]; then
if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then ST_ACTION=${1}
ntss=${ST_ACTION^^}
ntypesel=(${ntss})
ST_ACTION=${2}
else
ntss=""
ntypesel=(${NM_NODE_TYPES[@]}) ntypesel=(${NM_NODE_TYPES[@]})
[ "${1}" == "sync" ] && ST_ACTION=repl || ST_ACTION=${1} # if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then
fi # ntss=${ST_ACTION^^}
# ntypesel=(${ntss})
# ST_ACTION=${2}
# else
# ntss=""
# ntypesel=(${NM_NODE_TYPES[@]})
# [ "${1}" == "sync" ] && ST_ACTION=repl || ST_ACTION=${1}
# fi
else else
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in