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=(${NM_NODE_TYPES[@]})
ntypesel=(${ntss}) # if [ "${NM_NODETYPES[${ST_ACTION^^}]}" != "" ]; then
ST_ACTION=${2} # ntss=${ST_ACTION^^}
else # ntypesel=(${ntss})
ntss="" # ST_ACTION=${2}
ntypesel=(${NM_NODE_TYPES[@]}) # else
[ "${1}" == "sync" ] && ST_ACTION=repl || ST_ACTION=${1} # ntss=""
fi # 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