Update nodemgmt-scripts.sh
This commit is contained in:
@@ -593,14 +593,14 @@ DOWNLIST(){
|
||||
IFS=$'\n'
|
||||
read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}"
|
||||
unset IFS
|
||||
if [ "${1}" = "report" ]; then
|
||||
if [ "${1}" == "report" ]; then
|
||||
unset idsCL idsBG idsST
|
||||
idsCL=('')
|
||||
idsBG=('')
|
||||
idsST=('')
|
||||
DOWNLIST=()
|
||||
for dli in "${DOWN_LIST[@]}"; do
|
||||
[ ! -f ${dli/down/disable} ] && DOWNLIST+=(${dli})
|
||||
[ ! -f ${dli//.down/.disable} ] && DOWNLIST+=(${dli})
|
||||
done
|
||||
else
|
||||
DOWNLIST=(${DOWN_LIST[@]})
|
||||
|
||||
Reference in New Issue
Block a user