mirror of https://github.com/mack-a/v2ray-agent
fix(脚本): 修复多核心时无法升级xray-core的问题
parent
e7c57766d4
commit
d1f787fdfc
|
@ -2324,7 +2324,7 @@ updateV2Ray() {
|
||||||
updateXray() {
|
updateXray() {
|
||||||
readInstallType
|
readInstallType
|
||||||
|
|
||||||
if [[ -z "${coreInstallType}" ]]; then
|
if [[ -z "${coreInstallType}" || "${coreInstallType}" != "1" ]]; then
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
version=$1
|
version=$1
|
||||||
else
|
else
|
||||||
|
@ -2346,7 +2346,7 @@ updateXray() {
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
version=$1
|
version=$1
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
|
@ -2365,7 +2365,6 @@ updateXray() {
|
||||||
if [[ "${reInstallXrayStatus}" == "y" ]]; then
|
if [[ "${reInstallXrayStatus}" == "y" ]]; then
|
||||||
handleXray stop
|
handleXray stop
|
||||||
rm -f /etc/v2ray-agent/xray/xray
|
rm -f /etc/v2ray-agent/xray/xray
|
||||||
rm -f /etc/v2ray-agent/xray/xray
|
|
||||||
updateXray
|
updateXray
|
||||||
else
|
else
|
||||||
echoContent green " ---> 放弃重新安装"
|
echoContent green " ---> 放弃重新安装"
|
||||||
|
@ -8719,7 +8718,7 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
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 "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue