diff --git a/defaults.inc b/defaults.inc index 2ac9aa08..e5921843 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='5.1.90-02192024' +VERS='5.1.91-02202024' NM_BETA=false noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck ' diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index aa0840bc..e36157ef 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -772,9 +772,7 @@ RUN_COMMAND(){ DOWNLIST(){ declare -i cw; declare -i spc1; declare -i c DOWN_LIST=`find ${NM_TMPFOLDER}/ -iname "*.down"` - IFS=$'\n' - read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}" - unset IFS + IFS=$'\n'; read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}"; unset IFS if [ "${1}" == "report" ]; then unset idsCL idsBG idsST idsCL=('') @@ -785,6 +783,7 @@ DOWNLIST(){ [ ! -f ${dli//.down/.disable} ] && DOWNLIST+=(${dli}) done else + sss=1 DOWNLIST=(${DOWN_LIST[@]}) fi @@ -833,6 +832,15 @@ DOWNLIST(){ DIVIDER false yellow ${dlen} until [ "${choice^^}" = "E" ]; do + + if [ "${1}" != "report" ] && [ ${sss} -ne 1 ]; then + DOWN_LIST=`find ${NM_TMPFOLDER}/ -iname "*.down"` + IFS=$'\n'; read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}"; unset IFS + DOWNLIST=(${DOWN_LIST[@]}) + elif [ ${sss} -eq 1 ]; then + sss=0 + fi + cw=35; cw1=11; cw2=20; is=1; for downitem in ${DOWNLIST[@]}; do ditem=${downitem##*/}