From 0e8c77fa9025c678398020699a434691144c6077 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Thu, 10 Jul 2025 17:57:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20sing-box=20check=20?= =?UTF-8?q?=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC=E6=9D=A5=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=98=AF=E5=90=A6=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 5fdd151..d4dbb71 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -403,7 +403,7 @@ EOF #插入过滤规则 cat >>"$TMPDIR"/dns.yaml <&1) - if [ -n "$error" ]; then + if ! error=$("$TMPDIR"/CrashCore check -D "$BINDIR" -C "$TMPDIR"/jsons 2>&1); then echo $error error_file=$(echo $error | grep -Eo 'cust.*\.json' | sed 's/cust_//g') [ "$error_file" = 'add_rules.json' ] && error_file="$CRASHDIR"/yamls/rules.yaml自定义规则 || error_file="$CRASHDIR"/jsons/$error_file