From bf23503c6562eff97f1d54fbd7c009fea4dd39b0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 12 Apr 2022 14:08:30 -0400 Subject: [PATCH] Update debian-v3.sh --- ct/debian-v3.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ct/debian-v3.sh b/ct/debian-v3.sh index 3b6472c6..560a98e1 100644 --- a/ct/debian-v3.sh +++ b/ct/debian-v3.sh @@ -239,15 +239,15 @@ header_info echo -e "${GN}Using ${BGN}${RAM_SIZE}MiB${CL}${GN} RAM${CL}" echo -e "${GN}Using IP Address ${BGN}$NET${CL}" echo -e "${GN}Using VLAN Tag ${BGN}$VLAN1${CL}" -while true; do - read -p "Are these settings correct(y/n)?" yn - case $yn in - [Yy]* ) break;; - [Nn]* ) clear; header_info; start_script;; - * ) echo "Please answer yes or no";; - esac -done + +read -p "Are these settings correct(y/n)? " -n 1 -r +echo +if [[ ! $REPLY =~ ^[Yy]$ ]] +then + advanced_settings +fi } + function start_script() { echo -e "${YW}Type Advanced, or Press [ENTER] for Default Settings " read SETTINGS