From e5b198afe5196fa241a2747a00f701cedf0d3412 Mon Sep 17 00:00:00 2001 From: juewuy Date: Thu, 18 Jan 2024 15:48:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=80=82=E9=85=8D=E6=96=B0=E7=9A=84=E5=88=86=E6=94=AF?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5d06d77..9d82cc9 100644 --- a/install.sh +++ b/install.sh @@ -49,7 +49,7 @@ error_down(){ } #安装及初始化 gettar(){ - webget /tmp/ShellCrash.tar.gz "$url/bin/ShellCrash.tar.gz" + webget /tmp/ShellCrash.tar.gz "$tar_url" if [ "$result" != "200" ];then $echo "\033[33m文件下载失败!\033[0m" error_down @@ -197,13 +197,20 @@ setversion(){ $echo "\033[33m请选择想要安装的版本:\033[0m" $echo " 1 \033[32m公测版(推荐)\033[0m" $echo " 2 \033[36m稳定版\033[0m" + $echo " 3 \033[31m开发版\033[0m" echo ----------------------------------------------- read -p "请输入相应数字 > " num case "$num" in 2) url=$(echo $url | sed 's/master/stable/') + tar_url=$url/bin/ShellClash.tar.gz + ;; + 3) + url=$(echo $url | sed 's/master/dev/') + tar_url=$url/bin/ShellCrash.tar.gz ;; *) + tar_url=$url/bin/ShellCrash.tar.gz ;; esac }