Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tcpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same issue that was fixed for imgurl on line 563 could also affect headurl. If the API returns multiple header deb files matching the search criteria, this line could also retrieve multiple URLs causing download failures. Consider adding | head -n 1 to ensure only a single URL is captured, consistent with the fix applied to imgurl.

Copilot uses AI. Check for mistakes.
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")
Expand Down