From e081fbd92b7849da78343d6ee9fb552d62f902e9 Mon Sep 17 00:00:00 2001 From: zzzzzhy Date: Fri, 17 Jan 2025 14:15:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E5=88=A4?= =?UTF-8?q?=E6=96=ADfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复定时更新https证书任务判断逻辑 --- cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd b/cmd index d123625b7..a04f60081 100755 --- a/cmd +++ b/cmd @@ -328,7 +328,7 @@ https_auto() { fi new_job="* 6 * * * docker run -it --rm -v $(pwd):/work nginx:alpine sh /work/bin/https renew" current_crontab=$(crontab -l 2>/dev/null) - if echo "$current_crontab" | grep -v "https renew"; then + if ! echo "$current_crontab" | grep -v "https renew"; then echo "任务已存在,无需添加。" else crontab -l |{