Commit ab3d047a by luoqi

fix(deploy): pull 后 re-exec 新版脚本 — 本轮才会用上 pull 进来的脚本变更(SERVICES 等)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 91f79dc6
...@@ -29,6 +29,10 @@ main() { ...@@ -29,6 +29,10 @@ main() {
if [[ "${1:-}" != "--no-pull" ]]; then if [[ "${1:-}" != "--no-pull" ]]; then
log "git pull --ff-only" log "git pull --ff-only"
git pull --ff-only origin main git pull --ff-only origin main
# pull 可能更新了本脚本(SERVICES 列表/验证逻辑)→ re-exec 新版执行后续步骤,
# 否则本轮跑的是 pull 前加载的旧版(2026-06-10 实测:新加的 pac-asr 服务没被 build)
log "re-exec 最新脚本(--no-pull)"
exec bash "$0" --no-pull
fi fi
log "HEAD: $(git log --oneline -1)" log "HEAD: $(git log --oneline -1)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment