From 693bb959ce29235d06a4ac32288b6f0bb7136e41 Mon Sep 17 00:00:00 2001 From: Muse Date: Tue, 20 Oct 2026 01:37:23 +0800 Subject: [PATCH] =?UTF-8?q?agent-install:=20raw=20URL=20=E5=8A=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=88=B3=EF=BC=8C=E7=A0=B4=20GitHub=20=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=98=B2=E6=8B=89=E6=97=A7=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/agent-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }