From d1f787fdfc542845166e9adf2698d5a7ef13856e Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:40:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A4=9A=E6=A0=B8=E5=BF=83=E6=97=B6=E6=97=A0=E6=B3=95=E5=8D=87?= =?UTF-8?q?=E7=BA=A7xray-core=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 07e5de6..2f6579f 100644 --- a/install.sh +++ b/install.sh @@ -2324,7 +2324,7 @@ updateV2Ray() { updateXray() { readInstallType - if [[ -z "${coreInstallType}" ]]; then + if [[ -z "${coreInstallType}" || "${coreInstallType}" != "1" ]]; then if [[ -n "$1" ]]; then version=$1 else @@ -2346,7 +2346,7 @@ updateXray() { if [[ -n "$1" ]]; then version=$1 else - version=$(curl -s "https://api.github.com/repos/XTLS/Xray-core/releases?per_page=5" | jq -r ".[]|select (.prerelease==${prereleaseStatus})|.tag_name" | head -1) + version=$(curl -s "https://api.github.com/repos/XTLS/Xray-core/releases?per_page=10" | jq -r ".[]|select (.prerelease==${prereleaseStatus})|.tag_name" | head -1) fi if [[ -n "$1" ]]; then @@ -2365,7 +2365,6 @@ updateXray() { if [[ "${reInstallXrayStatus}" == "y" ]]; then handleXray stop rm -f /etc/v2ray-agent/xray/xray - rm -f /etc/v2ray-agent/xray/xray updateXray else echoContent green " ---> 放弃重新安装" @@ -8719,7 +8718,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.2.27" + echoContent green "当前版本:v3.2.28" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus