Browse Source

fix(backend): quote WORKERS expansion next to fullwidth parentheses

Bash with set -u treated $WORKERS) as an unbound variable name.

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 2 months ago
parent
commit
5b96c0643b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/start.sh

+ 1 - 1
backend/start.sh

@@ -163,7 +163,7 @@ start_server() {
     log_info "启动模式: 开发(热重载,前台)"
   else
     cmd+=(--workers "$WORKERS")
-    log_info "启动模式: 后台(workers=$WORKERS)"
+    log_info "启动模式: 后台(workers=${WORKERS})"
   fi
 
   log_info "=========================================="