瀏覽代碼

Update debian-v3.sh

tteckster 3 年之前
父節點
當前提交
bf23503c65
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      ct/debian-v3.sh

+ 8 - 8
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