From 2b76bb7fb1b61c91945d421ee573acd40a16c029 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 27 May 2024 17:39:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8Dxr?= =?UTF-8?q?ay-core=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AE=89=E8=A3=85=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=BB=98=E8=AE=A4=E5=AE=89=E8=A3=850=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 1e75e64..99fd051 100644 --- a/install.sh +++ b/install.sh @@ -7696,16 +7696,17 @@ customXrayInstall() { echoContent red " ---> 多选请使用英文逗号分隔" exit 0 fi - if [[ "${selectCustomInstallType//,/}" =~ ^[0-5]+$ ]]; then + + + if [[ "${selectCustomInstallType}" == "7" ]]; then + selectCustomInstallType=",${selectCustomInstallType}," + else if ! echo "${selectCustomInstallType}" | grep -q "0,"; then selectCustomInstallType=",0,${selectCustomInstallType}," else selectCustomInstallType=",${selectCustomInstallType}," fi fi - if [[ "${selectCustomInstallType}" == "7" ]]; then - selectCustomInstallType=",${selectCustomInstallType}," - fi # if [[ "${selectCustomInstallType: -1}" != "," ]]; then # selectCustomInstallType="${selectCustomInstallType}," @@ -9170,7 +9171,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.2.54" + echoContent green "当前版本:v3.2.55" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus