From 686bf79555601830bf61c54672d636631f96e14e Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 01:52:03 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Config/Other/Acme.sh b/Config/Other/Acme.sh index 9df51d8..185be07 100644 --- a/Config/Other/Acme.sh +++ b/Config/Other/Acme.sh @@ -33,7 +33,7 @@ fi declare pick_mode echo "1.http验证" echo "2.dns验证" -read -p "请选择验证模式" pick_mode +read -p "请选择验证模式:" pick_mode case $pick_mode in '1') @@ -50,11 +50,11 @@ case $pick_mode in declare -a mode_arr mode_arr[1]="TXT记录" mode_arr[2]='cloudflare' - for i in $mode_arr ; do - pick=$(( pick+1 )) - ehco "${pick}.${mode_arr[$pick]}" + for i in "${!mode_arr[@]}"; do + ((pick++)) + echo "${pick}. ${mode_arr[$i]}" done - read -p "请选择验证模式" pick_mode + read -p "请选择验证模式:" pick_mode if [[ ! $pick_mode =~ [1-${pick}] ]]; then exit fi