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