From 231247ffe0be0d49c754d36d0188ca99800193e3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 22:06:52 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b752df9f..07056e5b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -249,17 +249,16 @@ DELSITES(){ else 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]} " + echo -e -n "${idsCL[LightRed]}Are you sure you want to delete '${idsST[Bold]}${idsCL[Red]}${SITES[${selsite}]}{idsST[Reset]}${idsCL[LightRed]}'? [y/N]${idsCL[Default]} " read -n 1 response echo "" if [[ $response =~ ^[Yy]$ ]]; then echo 'delete' - else - DELSITES - exit 0 - fi - + ENTER2CONTINUE + fi done + DELSITES + exit 0 fi if [ -z $action ] || [ "${action}" = "gui" ]; then ENTER2CONTINUE