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