acme更正

This commit is contained in:
lsy 2024-09-23 01:56:58 +08:00
parent 6e2693ff8a
commit 077622f5d3

View File

@ -5,7 +5,7 @@ if [[ ! -f "${HOME}/.acme.sh/acme.sh" ]];then
declare mail declare mail
declare domain declare domain
read -p "请输入用来申请域名的邮箱:" mail read -p "请输入用来申请域名的邮箱:" mail
if [[ ! $mail =~ \w+@\w+\.[a-z]+ ]];then if [[ ! $mail =~ \b[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,6}\b ]];then
echo "邮箱不合法" echo "邮箱不合法"
exit exit
fi fi
@ -81,7 +81,7 @@ case $pick_mode in
declare CF_Key declare CF_Key
declare CF_Email declare CF_Email
read -p "请输入cloudflare的邮箱" CF_Email read -p "请输入cloudflare的邮箱" CF_Email
if [[ ! $CF_Email =~ \w+@\w+\.[a-z]+ ]];then if [[ ! $CF_Email =~ \b[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,6}\b ]];then
echo "邮箱不合法" echo "邮箱不合法"
exit exit
fi fi