提交 63a61d5f 编写于 作者: M Mislav Marohnić

Perform case-insensitive matching on HTTP header name

上级 8e6a7173
......@@ -6,7 +6,7 @@
set -e
latest-version() {
curl -fsi https://github.com/github/hub/releases/latest | awk -F/ '/^location:/ {print $(NF)}'
curl -fsi https://github.com/github/hub/releases/latest | awk -F/ 'tolower($1) ~ /^location:/ {print $(NF)}'
}
HUB_VERSION="${1#v}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册