Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-05 21:55:46 -06:00
parent 9e13124732
commit 9f035daee4

View File

@@ -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