acme更正
This commit is contained in:
parent
22b36cfe6e
commit
686bf79555
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user