Skip to content

Commit

Permalink
Merge pull request #91 from 0x7a7a/patch-1
Browse files Browse the repository at this point in the history
修复版本号大小写匹配问题
  • Loading branch information
lmk123 authored Feb 18, 2021
2 parents fff2c92 + 9a7d0fb commit e37ec8b
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 -i 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/ip'
}

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 -i 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/ip'
}

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

1 comment on commit e37ec8b

@vercel
Copy link

@vercel vercel bot commented on e37ec8b Feb 18, 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.