diff --git a/start.sh b/start.sh index f58525e..0e3e1b1 100755 --- a/start.sh +++ b/start.sh @@ -101,7 +101,9 @@ run_deploy_questions() { else read -r -p "3.1 是否启用 HTTPS?[y/N]: " https_choice DEPLOY_HTTPS=false - [[ "$https_choice" =~ ^[yY] ]] && DEPLOY_HTTPS=true + if [[ "$https_choice" =~ ^[yY] ]]; then + DEPLOY_HTTPS=true + fi fi [ "$DEPLOY_HTTPS" = true ] && echo " 启用 HTTPS 需确保防火墙已放行 80、443 端口" fi