acme更正

This commit is contained in:
lsy 2024-09-23 01:52:03 +08:00
parent 22b36cfe6e
commit 686bf79555

View File

@ -33,7 +33,7 @@ fi
declare pick_mode declare pick_mode
echo "1.http验证" echo "1.http验证"
echo "2.dns验证" echo "2.dns验证"
read -p "请选择验证模式" pick_mode read -p "请选择验证模式" pick_mode
case $pick_mode in case $pick_mode in
'1') '1')
@ -50,11 +50,11 @@ case $pick_mode in
declare -a mode_arr declare -a mode_arr
mode_arr[1]="TXT记录" mode_arr[1]="TXT记录"
mode_arr[2]='cloudflare' mode_arr[2]='cloudflare'
for i in $mode_arr ; do for i in "${!mode_arr[@]}"; do
pick=$(( pick+1 )) ((pick++))
ehco "${pick}.${mode_arr[$pick]}" echo "${pick}. ${mode_arr[$i]}"
done done
read -p "请选择验证模式" pick_mode read -p "请选择验证模式" pick_mode
if [[ ! $pick_mode =~ [1-${pick}] ]]; then if [[ ! $pick_mode =~ [1-${pick}] ]]; then
exit exit
fi fi