From 8137f0a897c80fe80b6aa0306148446638a66fde Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Dec 2023 08:09:55 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e457c579..8a1cbd6d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -593,19 +593,19 @@ DOWNLIST(){ IFS=$'\n' read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}" unset IFS - # if [ "${1}" = "report" ]; then - # DOWNLIST=${DOWN_LIST} - # unset idsCL idsBG idsST - # idsCL=('') - # idsBG=('') - # idsST=('') - # else + if [ "${1}" = "report" ]; then + DOWNLIST=${DOWN_LIST} + unset idsCL idsBG idsST + idsCL=('') + idsBG=('') + idsST=('') + else DOWNLIST=() for dli in "${DOWN_LIST[@]}"; do echo ${dli/disable/down} [ ! -f ${dli/down/disable} ] && DOWNLIST+=(${dli}) done - # fi + fi if [ -z ${ACTION} ] || [ "${ACTION}" = "gui" ]; then DIVIDER true