diff --git a/build/accept-integration.sh b/build/accept-integration.sh index 1a7d538..de5ac30 100755 --- a/build/accept-integration.sh +++ b/build/accept-integration.sh @@ -35,7 +35,14 @@ cd "$PROJECT_DIR" TARGET="${1:-}" SKIP_SEED=0 -for arg in "$@"; do [ "$arg" = "--skip-seed" ] && SKIP_SEED=1; done +# 只认 --skip-seed;其余参数一律报错退出,避免「参数写错被静默忽略」 +for arg in "$@"; do + case "$arg" in + --skip-seed) SKIP_SEED=1 ;; + "$TARGET") : ;; + *) echo "✗ 未知参数:$arg(只支持 --skip-seed;期望值路径用 EXPECT_PATH 环境变量)" >&2; exit 2 ;; + esac +done API_BASE="${API_BASE:-http://127.0.0.1:3000}" SAMPLES_DIR="${OPENDANCE_SAMPLES_DIR:-$PROJECT_DIR/../示例文件}"