From 59a256c590f255891745d2ad3424b44ebd46abb2 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 27 Nov 2020 12:47:33 +0100 Subject: [PATCH] Fixed bug in "Set sitename" y/n question --- AppendCMS.sh | 4 ++-- installer.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppendCMS.sh b/AppendCMS.sh index 231a4d7..f930c62 100644 --- a/AppendCMS.sh +++ b/AppendCMS.sh @@ -109,8 +109,8 @@ if [ $IMODE = l ]; then done read -p "Set sitename to ${domain//./_}? (y/n)" choice case "$choice" in - y|Y ) sitename=${domain//./_};; - n|N ) echo ""; + y*|Y* ) sitename=${domain//./_};; + n*|N* ) echo ""; while true; do echo "Please enter sitename, Must NOT contain special characters, except: _";read sitename if [[ $sitename == *['!'@#\$%^\&*()+,.]* ]] || [ -z "$sitename" ] diff --git a/installer.sh b/installer.sh index 6d4f7f4..6e6dd76 100644 --- a/installer.sh +++ b/installer.sh @@ -279,8 +279,8 @@ while true; do done read -p "Set sitename to ${domain//./_}? (y/n)" choice case "$choice" in - y|Y ) sitename=${domain//./_};; - n|N ) echo ""; + y*|Y* ) sitename=${domain//./_};; + n*|N* ) echo ""; while true; do echo "Please enter sitename, Must NOT contain special characters, except: _";read sitename if [[ $sitename == *['!'@#\$%^\&*()+,.]* ]] || [ -z "$sitename" ]