~修复国内源下载meta内核失败的问题
This commit is contained in:
juewuy
2023-01-23 12:06:08 +08:00
parent d2ad04b1c7
commit 1662b9b31a
2 changed files with 16 additions and 8 deletions

View File

@@ -1111,6 +1111,7 @@ bfstart(){
fi
[ -z "$cpucore" ] && source $clashdir/getdate.sh && getcpucore
[ -z "$cpucore" ] && logger 找不到设备的CPU信息请手动指定处理器架构类型 31 && setcpucore
[ "$update_url" = "https://jwsc.eu.org:8888" ] && [ "$clashcore" != 'clash' ] && update_url=https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master
$0 webget $bindir/clash "$update_url/bin/$clashcore/clash-linux-$cpucore"
[ "$?" = "1" ] && rm -rf $bindir/clash && logger "核心下载失败,已退出!" 31 && exit 1
clashv=$($bindir/clash -v 2>/dev/null | sed 's/ linux.*//;s/.* //')