From aa53399940bc4dfa35248617a78d2aeab746a303 Mon Sep 17 00:00:00 2001 From: Nan Mu <121783294+aa12110@users.noreply.github.com> Date: Thu, 18 Dec 2025 17:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E4=B8=BA=E4=B8=8A?= =?UTF-8?q?=E6=B8=B8api=E8=8E=B7=E5=8F=96=E5=88=B0=E5=A4=9A=E4=B8=AAdeb?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=AF=BC=E8=87=B4=E4=B8=8B=E8=BD=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复因为上游api获取到多个deb地址导致下载失败的问题 --- tcpx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpx.sh b/tcpx.sh index 08f300f8..f9970d40 100644 --- a/tcpx.sh +++ b/tcpx.sh @@ -560,7 +560,7 @@ installbbr() { kernel_version=$github_ver detele_kernel_head headurl=$(curl -s 'https://api.github.com/repos/ylx2016/kernel/releases' | grep "${github_tag}" | grep 'deb' | grep 'headers' | awk -F '"' '{print $4}') - imgurl=$(curl -s 'https://api.github.com/repos/ylx2016/kernel/releases' | grep "${github_tag}" | grep 'deb' | grep -v 'headers' | grep -v 'devel' | awk -F '"' '{print $4}') + imgurl=$(curl -s 'https://api.github.com/repos/ylx2016/kernel/releases' | grep "${github_tag}" | grep 'deb' | grep -v 'headers' | grep -v 'devel' | awk -F '"' '{print $4}' | head -n 1) headurl=$(check_cn "$headurl") imgurl=$(check_cn "$imgurl")