Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-05 22:02:37 -06:00
parent 9f035daee4
commit f5fd39c887

View File

@@ -247,7 +247,19 @@ DELSITES(){
elif [ "${selsite}" = "Q" ] || [ "${selsite}" = "q" ]; then
exit 0
else
echo "delete ${SITES[${selsite}]}"
while :
do
echo -e -n "${idsCL[LightRed]}Are you sure you want to delete '${idsST[Bold]}${idsCL[Red]}${SITES[${selsite}]}{idsST[Reset]}${idsCL[LightRed]}'? [N/y]${idsCL[Default]} "
read -n 1 response
echo ""
if [[ $response =~ ^[Yy]$ ]]; then
else
DELSITES
exit 0
fi
done
fi
if [ -z $action ] || [ "${action}" = "gui" ]; then
ENTER2CONTINUE