Update menu.sh

dependabot/github_actions/docker/build-push-action-4.0.0
fscarmen 3 years ago committed by GitHub
parent d735621d9e
commit 6ed7a8698a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      menu.sh

@ -1276,7 +1276,7 @@ install() {
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.15
{
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.15'}
latest=${latest:-'2.2.14'}
# 安装 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 ||

Loading…
Cancel
Save