diff --git a/inc/certs.inc b/inc/certs.inc index 4bbabd4f..29fda6f9 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -22,9 +22,11 @@ NEWCERT(){ done fi if [ "${NEW_CERT}" == "" ]; then - echo -en "\n${idsCL[LightCyan]}Create certificate for what name (comma seperated for mutiple) : ${idsCL[Default]}" - read NEW_CERT - echo + until [ "${NEW_CERT}" != "" ]; do + echo -en "\n${idsCL[LightCyan]}Create certificate for what name (comma seperated for mutiple) : ${idsCL[Default]}" + read NEW_CERT + echo + done fi echo @@ -92,9 +94,11 @@ NEWCERT(){ DEL-SSL(){ if [ -z ${1+x} ]; then - echo -e -n "${idsCL[LightCyan]}Delete what SSL site address: ${idsCL[Default]}" - read DEL_SSL - echo + until [ "${DEL_SSL}" != "" ]; do + echo -e -n "${idsCL[LightCyan]}Delete what SSL site address: ${idsCL[Default]}" + read DEL_SSL + echo + done else DEL_SSL=${1} fi diff --git a/inc/sites.inc b/inc/sites.inc index e783a3e9..8a025ade 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -19,9 +19,11 @@ DELSITE(){ shift done if [ -z ${DEL_SITE+x} ]; then - echo -en "${idsCL[LightCyan]}Delete what site address: ${idsCL[Default]}" - read DEL_SITE - echo + until [ "${DEL_SITE}" != "" ]; do + echo -en "${idsCL[LightCyan]}Delete what site address: ${idsCL[Default]}" + read DEL_SITE + echo + done fi if [[ $DEL_SSL =~ ^[Nn]$ ]]; then DEL_SSL=no @@ -343,7 +345,8 @@ NEWSITE(){ printf "%-${width}s: %s\n" "Block Exploits" "${EXPLOITS}" printf "%-${width}s: %s\n" "Secure Access" "${SECURE}" fi - echo -en "${idsCL[LightRed]}Is this information correct? [Y/n]${idsCL[Default]} " + echo + echo -en "${idsCL[LightGreen]}Is this information correct? [Y/n]${idsCL[Default]} " read -n 1 response echo