From 03234032e092eb15c02ff597aa1be61b64f58785 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 18:31:34 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99trai?= =?UTF-8?q?ling=20echo=EF=BC=8C=E4=BF=AE=E6=AD=A3blank=20line=E6=B8=85?= =?UTF-8?q?=E7=90=86sed=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/d77eb92f-55c9-4cb8-92db-2c4ce8754a8a Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- server/proxy/deploy-brain-proxy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/proxy/deploy-brain-proxy.sh b/server/proxy/deploy-brain-proxy.sh index 19866aca..3faf2858 100644 --- a/server/proxy/deploy-brain-proxy.sh +++ b/server/proxy/deploy-brain-proxy.sh @@ -543,8 +543,8 @@ remove_v3_nginx_blocks() { local conf="$1" # 删除从V3注释行到该location块闭合}的所有内容 sed -i '/# ─── 光湖语言世界V3/,/^[[:space:]]*}/d' "$conf" - # 清理多余空行 - sed -i '/^$/N;/^\n$/d' "$conf" + # 清理连续空行(保留最多一个空行) + sed -i '/^$/N;/^\n$/D' "$conf" } # 验证nginx配置并返回错误信息