mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
修改安装脚本适配新的分支结构
This commit is contained in:
parent
b7c97ba007
commit
243c66282f
|
@ -49,7 +49,7 @@ error_down(){
|
|||
}
|
||||
#安装及初始化
|
||||
gettar(){
|
||||
webget /tmp/ShellCrash.tar.gz "$tar_url"
|
||||
webget /tmp/ShellCrash.tar.gz "$url/bin/ShellCrash.tar.gz"
|
||||
if [ "$result" != "200" ];then
|
||||
$echo "\033[33m文件下载失败!\033[0m"
|
||||
error_down
|
||||
|
@ -203,14 +203,11 @@ setversion(){
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user