From ea6019311f1596b065c293d6b825fc0f1a8e930b Mon Sep 17 00:00:00 2001 From: vet Date: Mon, 20 Apr 2026 23:21:10 +0700 Subject: [PATCH] test --- 07-start-frontend.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/07-start-frontend.sh b/07-start-frontend.sh index 59d9b54..84bdb35 100755 --- a/07-start-frontend.sh +++ b/07-start-frontend.sh @@ -127,6 +127,8 @@ _start_fe() { local pidfile="$PID_DIR/fe-${name}.pid" local logfile="$LOG_DIR/fe-${name}.log" + _check_fe_port_free "$name" || return 1 + # 已在运行 if [[ -f "$pidfile" ]] && kill -0 "$(cat "$pidfile")" 2>/dev/null; then warn "$name 已在运行 (PID=$(cat "$pidfile")),跳过" @@ -156,8 +158,6 @@ _start_fe() { return 1 fi - _check_fe_port_free "$name" || return 1 - info "启动 ${BOLD}$name${NC} ..." if [[ "$name" == "pc" ]]; then pc_ensure_wasm_assets