diff --git a/scripts/agent-install.sh b/scripts/agent-install.sh index 0e254f9..059d789 100755 --- a/scripts/agent-install.sh +++ b/scripts/agent-install.sh @@ -15,7 +15,8 @@ fetch() { [[ -f "${NG_LOCAL_SRC}/$1" ]] || die "NG_LOCAL_SRC 目录缺少 $1" cp -a "${NG_LOCAL_SRC}/$1" "$2" else - curl -fL --retry 3 "https://raw.githubusercontent.com/${REPO}/${BRANCH}/$1" -o "$2" + # 加时间戳破坏 GitHub raw 缓存,避免拉到旧版 + curl -fL --retry 3 "https://raw.githubusercontent.com/${REPO}/${BRANCH}/$1?t=$(date +%s)" -o "$2" fi }