From 3d5245452e0c665b8b779fc9d16627a92235c3ad Mon Sep 17 00:00:00 2001 From: asdf88 Date: Mon, 30 Sep 2024 02:28:10 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20sa.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sa.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sa.sh b/sa.sh index b4cd541..40bfe11 100644 --- a/sa.sh +++ b/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