From 50279b678a59d1bc1307334f896d2595406d7dd3 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 01:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=AD=A3=E5=88=99=E5=8A=A0?= =?UTF-8?q?=E5=8F=8C=E5=BC=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Automation/backup.sh | 2 +- Config/Other/Acme.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Config/Automation/backup.sh b/Config/Automation/backup.sh index 0ed2a72..bf4f4f1 100644 --- a/Config/Automation/backup.sh +++ b/Config/Automation/backup.sh @@ -92,7 +92,7 @@ source "${path}/venv/bin/activate" for item in "$web_path"/*; do declare item_name=\$(basename "\$item") - if [[ "\$ignore" =~ "\$item_name" ]];then + if [[ "\$ignore" =~ \$item_name ]];then continue fi cd "\$item" || exit diff --git a/Config/Other/Acme.sh b/Config/Other/Acme.sh index cabf255..8bd94f1 100644 --- a/Config/Other/Acme.sh +++ b/Config/Other/Acme.sh @@ -4,7 +4,7 @@ if [[ ! -d "${HOME}/.acme.sh" ]];then declare mail declare domain read -p "请输入用来申请域名的邮箱:" mail - if [[ ! $mail =~ "\w+@\w+\.[a-z]+" ]];then + if [[ ! $mail =~ \w+@\w+\.[a-z]+ ]];then echo "邮箱不合法" exit fi @@ -61,7 +61,7 @@ case $pick_mode in case ${mode_arr[$pick_mode]} in 'TXT记录') declare domain - declare $log_output=$(acme.sh --issue --dns $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please) + declare log_output=$(acme.sh --issue --dns $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please) declare domain=$( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}') declare txt_value=$(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}') echo "请到dns系统解析TXT记录" @@ -79,12 +79,12 @@ case $pick_mode in declare CF_Key declare CF_Email read -p "请输入cloudflare的邮箱:" CF_Email - if [[ ! $CF_Email =~ "\w+@\w+\.[a-z]+" ]];then + if [[ ! $CF_Email =~ \w+@\w+\.[a-z]+ ]];then echo "邮箱不合法" exit fi read -p "请输入cloudflare的密钥:" CF_Key - if [[ ! $CF_Key =~ "\w+" ]];then + if [[ ! $CF_Key =~ \w+ ]];then echo "密钥不合法" exit fi