From 22b36cfe6e6bf7c22d4921ef2cfa1e839e131a06 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 01:41:11 +0800 Subject: [PATCH] =?UTF-8?q?acme=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Other/Acme.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Config/Other/Acme.sh b/Config/Other/Acme.sh index 8bd94f1..9df51d8 100644 --- a/Config/Other/Acme.sh +++ b/Config/Other/Acme.sh @@ -18,10 +18,11 @@ while(true);do read -p "不输入退出添加:" domain if [[ -z $domain ]];then break - elif [[ ! $domain =~ "[\w+\.]+" ]];then + elif [[ ! $domain =~ [\w+\.]+ ]];then echo "域名不合法" exit - domain_str="$domain_str -d $domain" + else + domain_str="$domain_str -d $domain" fi done if [[ -z $domain_str ]]; then @@ -30,8 +31,8 @@ if [[ -z $domain_str ]]; then fi declare pick_mode -read "1.http验证" -read "2.dns验证" +echo "1.http验证" +echo "2.dns验证" read -p "请选择验证模式" pick_mode case $pick_mode in