From 9f035daee4de11a275ff43ba3da0ccdc35d15244 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 21:55:46 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index efc058a1..d01c1443 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -235,16 +235,19 @@ DELSITES(){ fi echo " [Q] Quit" echo "" - echo "" echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} " read -n 2 selsite echo "" - if [ -z ${SITES[$selsite]} ]; then + if [ -z ${SITES[$selsite]} ] && [ "${selsite}" != "Q" ] && [ "${selsite}" != "q" ]; then echo "Thats an invaild option," echo "please select a valid option only." sleep 1 DELSITES exit 0 + elif [ "${selsite}" = "Q" ] || [ "${selsite}" = "q" ]; then + exit 0 + else + echo "delete ${SITES[${selsite}]}" fi if [ -z $action ] || [ "${action}" = "gui" ]; then ENTER2CONTINUE