Skip to content

Commit

Permalink
fix(脚本): 修复xray-core自定义安装无法默认安装0的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizard89 committed Jun 4, 2024
1 parent 3974e64 commit e9eba44
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 @@ -7730,16 +7730,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 @@ -9204,7 +9205,7 @@ menu() {
echoContent red "\n=============================================================="
echoContent green "原作者:mack-a"
echoContent green "作者:Wizard89"
echoContent green "当前版本:v3.0.58"
echoContent green "当前版本:v3.0.59"
echoContent green "Github:https://github.com/Wizard89/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down

0 comments on commit e9eba44

Please sign in to comment.