From f5fd39c8871447528707f5f39ee9ef217ceacf45 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 22:02:37 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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