From 3eb7a5416ad1510cc20ae6cfdd78ce646551e5c3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 14 Dec 2023 13:46:20 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 889f37e8..31f22e99 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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[@]})