Skip to content

Commit

Permalink
Merge pull request #79 from 0x5e/patch-1
Browse files Browse the repository at this point in the history
Update main.sh
  • Loading branch information
lmk123 authored Jan 28, 2021
2 parents 7be1a71 + 0dd0c6d commit be63238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ echo_with_date "当前 Oh My WeChat 版本为 v${omw_version}"

# 从 GitHub 获取 owm 版本号
get_omw_latest_version_from_github() {
curl --retry 2 -I -s https://github.com/lmk123/oh-my-wechat/releases/latest | grep Location | sed -n 's/.*\/v\(.*\)/\1/p'
curl --retry 2 -I -s https://github.com/lmk123/oh-my-wechat/releases/latest | grep -i Location: | sed -n 's/.*\/v\(.*\)/\1/p'
}

get_download_url() {
echo https://github.com/MustangYM/WeChatExtension-ForMac/archive/v${1}.zip
}

get_latest_version() {
curl --retry 2 -I -s https://github.com/MustangYM/WeChatExtension-ForMac/releases/latest | grep Location | sed -n 's/.*\/v\(.*\)/\1/p'
curl --retry 2 -I -s https://github.com/MustangYM/WeChatExtension-ForMac/releases/latest | grep -i Location: | sed -n 's/.*\/v\(.*\)/\1/p'
}

# 保存一下 -n 参数,给 install 方法作为参数用
Expand Down

1 comment on commit be63238

@vercel
Copy link

@vercel vercel bot commented on be63238 Jan 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.