From 276f13207b590ca6909e566a56e706c63c5cdb3d Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 4 Jan 2019 22:58:24 -0700 Subject: [PATCH] correct variable references to prevent incorrect globbing --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 5deb782..6252dd9 100644 --- a/setup.sh +++ b/setup.sh @@ -67,7 +67,7 @@ done # using certbot? while true; do read -p "Are you using Certbot to handle your SSL certificates? (default: NO) " yn - case $yn in + case "${yn}" in [Yy]*) useCertbot=1 break @@ -91,7 +91,7 @@ done if [ "${useCertbot}" -eq 1 ]; then while true; do read -p "What is the primary domain for your Certbot Certificates? " inputCertbotDomain - case $inputCertbotDomain in + case "${inputCertbotDomain}" in '') echo -e "\n${err}You cannot have an empty domain name${norm}" ;;