From 9eb9775ed9511e9f7e964e143cf8d06e6ef2f3c3 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Thu, 21 Apr 2022 00:25:51 +0800 Subject: [PATCH] Update menu.sh --- menu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.sh b/menu.sh index 6a67962..e3d7c6e 100644 --- a/menu.sh +++ b/menu.sh @@ -1208,10 +1208,10 @@ install(){ start=$(date +%s) # 注册 WARP 账户 (将生成 wgcf-account.toml 文件保存账户信息) - # 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.12 + # 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.13 { latest=$(wget --no-check-certificate -qO- -T1 -t1 $CDN "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g') - latest=${latest:-'2.2.12'} + latest=${latest:-'2.2.13'} # 安装 wgcf,尽量下载官方的最新版本,如官方 wgcf 下载不成功,将使用 githubusercontents 的 CDN,以更好的支持双栈。并添加执行权限 wget --no-check-certificate -T1 -t1 $CDN -O /usr/bin/wgcf https://github.com/ViRb3/wgcf/releases/download/v"$latest"/wgcf_"$latest"_linux_$ARCHITECTURE ||