Skip to content

Commit

Permalink
修复版本号大小写匹配问题
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7a7a authored Feb 18, 2021
1 parent fff2c92 commit 9a7d0fb
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

0 comments on commit 9a7d0fb

Please sign in to comment.