From bfae54713a2c155cda07fe86dfce97f9f4f0c972 Mon Sep 17 00:00:00 2001 From: lsy Date: Tue, 24 Sep 2024 12:25:46 +0800 Subject: [PATCH] =?UTF-8?q?ssl=20=E8=A7=A3=E6=9E=90txt=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Other/acme_ssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Config/Other/acme_ssl.sh b/Config/Other/acme_ssl.sh index 7d6c447..35d8f61 100644 --- a/Config/Other/acme_ssl.sh +++ b/Config/Other/acme_ssl.sh @@ -64,8 +64,8 @@ case $pick_mode in 'TXT记录') declare domain declare log_output=$(${HOME}/.acme.sh/acme.sh --issue --dns $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please) - declare -a domain=$( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}') - declare -a txt_value=$(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}') + declare -a domain=($( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}' | cut " ")) + declare -a txt_value=($(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}'| cut " ")) echo "请到dns系统解析TXT记录" for (( i = 0; i < ${#domain[@]}; i++ )); do echo "需要解析的第$((i+1))条"