Update sb.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user