fix(local): 变量名紧贴全角括号导致 unbound variable / 报错消息中断

bash 3.2 在 UTF-8 下把紧跟变量名的全角字符算进标识符,`"$PREVIEW_PORT(office 文档)"`
会被当成 $PREVIEW_PORT(office 这个变量 → set -u 下直接炸,启动器在 preview 那步退出。
四处一律改成 ${VAR} 形式;其中 `$SKILLS_DIR(python3 未安装…` 是原有问题(只在没 python3 时触发)。
This commit is contained in:
2026-11-11 22:17:43 +08:00
parent b3a0d5370c
commit 893fc92f6d
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -101,5 +101,5 @@ done
if [ "$stopped" = 1 ]; then
say '已停止'
else
say "没有在运行($PORT、MCP 端口 $MCP_PORTS、预览端口 $pv_port 都空闲)"
say "没有在运行(${PORT}、MCP 端口 ${MCP_PORTS}、预览端口 $pv_port 都空闲)"
fi