From f815f87e3dee2eeaede2dea8a76ba8e071a780f9 Mon Sep 17 00:00:00 2001 From: zhangxiang Date: Tue, 18 Aug 2026 13:09:23 +0800 Subject: [PATCH] fix(deploy): brace COMPOSE_FILE in Chinese echo string Bash treated the full-width comma after $COMPOSE_FILE as part of the variable name under UTF-8 locale, causing an unbound variable error at the Next.js container rebuild step. --- scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 5c21d03..f46fdd8 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -276,7 +276,7 @@ cmd_deploy() { $COMPOSE_CMD -f '$COMPOSE_FILE' up -d echo \"✅ Next.js 容器已重建\" else - echo \"⚠️ 未找到 $COMPOSE_FILE,跳过 Next.js 容器重建\" + echo \"⚠️ 未找到 ${COMPOSE_FILE},跳过 Next.js 容器重建\" fi "