更新 sa.sh
This commit is contained in:
parent
963b9ea24c
commit
3d5245452e
4
sa.sh
4
sa.sh
@ -150,7 +150,7 @@ getVersion() {
|
||||
VER=v`/usr/local/bin/sing-box version|head -n1 | awk '{print $3}'`
|
||||
RETVAL=$?
|
||||
CUR_VER="$(normalizeVersion "$(echo "$VER" | head -n 1 | cut -d " " -f2)")"
|
||||
TAG_URL="https://codeberg.org/asdf88/s-box/raw/branch/main/latest.txt"
|
||||
TAG_URL="https://codeberg.org/asdf88/s-box/raw/branch/main/v1.9.6/latest1.9.6.txt"
|
||||
NEW_VER_V="$(normalizeVersion "$(curl -s "${TAG_URL}" --connect-timeout 10| grep -Eo '\"tag_name\"(.*?)\",' | cut -d\" -f4)")"
|
||||
NEW_VER=`curl -s "${TAG_URL}" --connect-timeout 10| grep -Eo '\"tag_name\"(.*?)\",' | cut -d\" -f4 | awk -F 'v' '{print $2}'`
|
||||
|
||||
@ -272,7 +272,7 @@ installSingBox() {
|
||||
archAffix
|
||||
rm -rf /tmp/sing-box
|
||||
mkdir -p /tmp/sing-box
|
||||
DOWNLOAD_LINK="https://codeberg.org/asdf88/s-box/raw/branch/main/core/sing-box-${NEW_VER}-linux-${ARCH}.tar.gz"
|
||||
DOWNLOAD_LINK="https://codeberg.org/asdf88/s-box/raw/branch/main/v1.9.6/sing-box-${NEW_VER}-linux-${ARCH}.tar.gz"
|
||||
colorEcho $BLUE " 下载SingBox: ${DOWNLOAD_LINK}"
|
||||
wget -O /tmp/sing-box/sing-box.tar.gz ${DOWNLOAD_LINK}
|
||||
if [ $? != 0 ];then
|
||||
|
Loading…
Reference in New Issue
Block a user