diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index c610c17..a003911 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/scripts/clash.sh b/scripts/clash.sh index 16850be..226ac50 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -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 diff --git a/scripts/getdate.sh b/scripts/getdate.sh index 2322663..49a0240 100644 --- a/scripts/getdate.sh +++ b/scripts/getdate.sh @@ -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 } \ No newline at end of file