Uncompress gziped response

上级 bea944a5
#!/usr/bin/env bash
ruby_versions=$(
curl --silent -H "Content-Type:text/html" "http://cache.ruby-lang.org/pub/ruby/" \
curl --silent --compressed "http://cache.ruby-lang.org/pub/ruby/" \
| sed -n -E 's/^.*"(ruby-)(.*).tar.gz".*$/\2/p' \
| sort \
| uniq
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册