diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d01c1443..945990b0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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