fix(脚本): 修复xray-core自定义安装无法默认安装0的问题

pull/1054/head^2
mack-a 2024-05-27 17:39:39 +08:00
parent 513cba2e7d
commit 2b76bb7fb1
1 changed files with 6 additions and 5 deletions

View File

@ -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 "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus