From 04d80bb5fc2c328a2bac343373de3ae524c259a5 Mon Sep 17 00:00:00 2001 From: lsy Date: Sun, 22 Sep 2024 21:07:50 +0800 Subject: [PATCH] =?UTF-8?q?vpn=E8=8F=9C=E5=8D=95=EF=BC=8Cxboard=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Docker/Xboard.sh | 6 +++++- Menus/Vpn.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Config/Docker/Xboard.sh b/Config/Docker/Xboard.sh index b7b1751..a0d5607 100644 --- a/Config/Docker/Xboard.sh +++ b/Config/Docker/Xboard.sh @@ -8,7 +8,11 @@ cd .. rm -rf "$namediv" git clone -b docker-compose --depth 1 https://github.com/cedar2025/Xboard -mv Xboard "$namediv" + +if [[ "$namediv" != Xboard ]];then + mv Xboard "$namediv" +fi + cd "$path" docker compose run -it --rm xboard php artisan xboard:install diff --git a/Menus/Vpn.sh b/Menus/Vpn.sh index 4e41cb9..669b36e 100644 --- a/Menus/Vpn.sh +++ b/Menus/Vpn.sh @@ -2,7 +2,7 @@ declare vpn_number=0 declare -a vpn_index declare -A vpn_array -declarec vpn_pick +declare vpn_pick vpn_array["v2ray"]='bash <(curl -s -L https://git.io/v2ray.sh)' vpn_array["v2ray-agent"]='wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh'