Skip to content

Commit

Permalink
fix(脚本): 修复xray-core自定义安装无法默认安装0的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed May 27, 2024
1 parent 513cba2 commit 2b76bb7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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},"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b76bb7

Please sign in to comment.