From ae674d212c51bb277881bea29c53ea2fe3ee997c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Dec 2023 08:17:00 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 735463d2..d3afb6a8 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -611,7 +611,8 @@ DOWNLIST(){ fi echo - if [ "${DOWNLIST}" == "" ] && [ "${1}" != "report" ]; then + if [ "${DOWNLIST}" == "" ]; then + [ "${1}" == "report" ] && exit 0 echo -e "${idsCL[LightCyan]}Nothing is down. Hooray for you!!${idsCL[Default]}" echo -en "\nWanna see something great for being so awesome? (y/N) " @@ -638,7 +639,7 @@ DOWNLIST(){ done fi - elif [ "${DOWNLIST}" != "" ]; then + else [ "${1}" == "report" ] && dlen=100 || dlen=110 echo -e "${idsCL[LightGreen]}Current List of Items Down...${idsCL[Default]}" DIVIDER false yellow ${dlen}