From 9e505b39708fc286901b5ba8e1c0e8674efdf9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Thu, 21 Aug 2025 22:10:03 +0800 Subject: [PATCH] Update sb.sh --- sb.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sb.sh b/sb.sh index 00e6bc8..0f0c2c4 100644 --- a/sb.sh +++ b/sb.sh @@ -224,13 +224,13 @@ fi inssb(){ red "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" green "使用哪个内核版本?目前:1.10系列正式版内核支持geosite分流,1.10系列之后最新内核不支持geosite分流" -yellow "1:使用1.10系列正式版内核 (回车默认)" -yellow "2:使用1.10系列之后最新正式版内核" +yellow "1:使用1.10系列之后最新正式版内核 (回车默认)" +yellow "2:使用1.10.7正式版内核" readp "请选择【1-2】:" menu if [ -z "$menu" ] || [ "$menu" = "1" ] ; then -sbcore=$(curl -Ls https://data.jsdelivr.com/v1/package/gh/SagerNet/sing-box | grep -Eo '"1\.10[0-9\.]*",' | sed -n 1p | tr -d '",') -else sbcore=$(curl -Ls https://data.jsdelivr.com/v1/package/gh/SagerNet/sing-box | grep -Eo '"[0-9.]+",' | sed -n 1p | tr -d '",') +else +sbcore=$(curl -Ls https://data.jsdelivr.com/v1/package/gh/SagerNet/sing-box | grep -Eo '"1\.10[0-9\.]*",' | sed -n 1p | tr -d '",') fi sbname="sing-box-$sbcore-linux-$cpu" curl -L -o /etc/s-box/sing-box.tar.gz -# --retry 2 https://github.com/SagerNet/sing-box/releases/download/v$sbcore/$sbname.tar.gz