Update warp-go.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 3 years ago committed by GitHub
parent 7a88a95d57
commit f13caa0fc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      warp-go.sh

@ -748,10 +748,10 @@ install(){
start=$(date +%s)
# 注册 WARP 账户 (将生成 warp 文件保存账户信息)
# 判断 wgcf 的最新版本,如因 gitlab 接口问题未能获取,默认 v1.0.4
# 判断 wgcf 的最新版本,如因 gitlab 接口问题未能获取,默认 v1.0.3
{
latest=$(wget -qO- -T1 -t1 https://gitlab.com/api/v4/projects/ProjectWARP%2Fwarp-go/releases | grep -oP '"tag_name":"v\K[^\"]+' | head -n 1)
latest=${latest:-'1.0.4'}
latest=${latest:-'1.0.3'}
# 安装 warp-go,尽量下载官方的最新版本,如官方 warp-go 下载不成功,将使用 githubusercontents 的 CDN,以更好的支持双栈。并添加执行权限
mkdir -p /opt/warp-go/ >/dev/null 2>&1

Loading…
Cancel
Save