Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-14 13:46:20 -06:00
parent 85defcd96d
commit 3eb7a5416a

View File

@@ -593,14 +593,14 @@ DOWNLIST(){
IFS=$'\n' IFS=$'\n'
read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}" read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}"
unset IFS unset IFS
if [ "${1}" = "report" ]; then if [ "${1}" == "report" ]; then
unset idsCL idsBG idsST unset idsCL idsBG idsST
idsCL=('') idsCL=('')
idsBG=('') idsBG=('')
idsST=('') idsST=('')
DOWNLIST=() DOWNLIST=()
for dli in "${DOWN_LIST[@]}"; do for dli in "${DOWN_LIST[@]}"; do
[ ! -f ${dli/down/disable} ] && DOWNLIST+=(${dli}) [ ! -f ${dli//.down/.disable} ] && DOWNLIST+=(${dli})
done done
else else
DOWNLIST=(${DOWN_LIST[@]}) DOWNLIST=(${DOWN_LIST[@]})