mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
v1.0.0beta10fix2
~增加大量订阅内置规则 ~修复偶尔无法正常更新的bug ~修复导入订阅时无法正常启动的bug ~修复ac2100核心无法正常工作的bug ~修复切换更新源后无法正常更新的bug
This commit is contained in:
parent
baf0b1adc5
commit
29f7ba1518
Binary file not shown.
|
@ -634,7 +634,7 @@ update(){
|
|||
if [ -z "$release_new" ];then
|
||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
echo -e "\033[33m正在检查更新!\033[0m"
|
||||
if [ "$update_url" = "https://cdn.jsdelivr.net/gh/juewuy/ShellClash" ];then
|
||||
if [ "$update_url" = "https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master" ];then
|
||||
release_new=$(curl -kfsSL --resolve api.github.com:443:140.82.113.5 --connect-timeout 3 -m 3 "https://api.github.com/repos/juewuy/ShellClash/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
|
||||
update_url=$update_url@$release_new
|
||||
fi
|
||||
|
|
|
@ -570,5 +570,6 @@ sed -i '/update_url*/'d $ccfg
|
|||
sed -i "1i\update_url=\'$update_url\'" $ccfg
|
||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
echo -e "\033[32m源地址更新成功!\033[0m"
|
||||
release_new=""
|
||||
update
|
||||
}
|
Loading…
Reference in New Issue
Block a user