From 5bfb2dc324ea51c1a4acceb91d6ca141ad570e50 Mon Sep 17 00:00:00 2001 From: sindricn Date: Wed, 1 Oct 2025 11:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/outbound-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/outbound-manager.sh b/scripts/outbound-manager.sh index c3ae946..0094147 100644 --- a/scripts/outbound-manager.sh +++ b/scripts/outbound-manager.sh @@ -2873,7 +2873,7 @@ remove_rule_from_config() { local rule_found=false while IFS= read -r line || [[ -n "$line" ]]; do - if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*name:[[:space:]]*${rule_name}[[:space:]]*$ ]]; then + if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*name:[[:space:]]*[\"']*${rule_name}[\"']*[[:space:]]*$ ]]; then in_target_rule=true rule_found=true continue @@ -3331,4 +3331,4 @@ prompt_config_sync() { # 如果脚本被直接执行 if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then manage_outbound -fi \ No newline at end of file +fi