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 fi
echo " [Q] Quit" echo " [Q] Quit"
echo "" echo ""
echo ""
echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} " echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} "
read -n 2 selsite read -n 2 selsite
echo "" echo ""
if [ -z ${SITES[$selsite]} ]; then if [ -z ${SITES[$selsite]} ] && [ "${selsite}" != "Q" ] && [ "${selsite}" != "q" ]; then
echo "Thats an invaild option," echo "Thats an invaild option,"
echo "please select a valid option only." echo "please select a valid option only."
sleep 1 sleep 1
DELSITES DELSITES
exit 0 exit 0
elif [ "${selsite}" = "Q" ] || [ "${selsite}" = "q" ]; then
exit 0
else
echo "delete ${SITES[${selsite}]}"
fi fi
if [ -z $action ] || [ "${action}" = "gui" ]; then if [ -z $action ] || [ "${action}" = "gui" ]; then
ENTER2CONTINUE ENTER2CONTINUE