From 42f9de2ce1bd9760d1fc6b9e898480b7a296e267 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 21:52:54 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e6a89961..c5f7d403 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -238,7 +238,13 @@ DELSITES(){ echo "" echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} " read -n 2 selsite - echo $selsite + echo "" + if [ -z ${SITES[$selsite]} ]; then + echo "Thats an invaild option," + echo "please select a valid option only." + DELSITES + exit 0 + fi if [ -z $action ] || [ "${action}" = "gui" ]; then ENTER2CONTINUE fi