mptre / pick

A fuzzy search tool for the command-line
MIT License
814 stars 42 forks source link

Make curl follow redirect to package location #288

Closed bright-tools closed 6 years ago

bright-tools commented 6 years ago

Using the command within INSTALL.md verbatim yields:

$ curl -O https://github.com/mptre/pick/releases/download/v2.0.2/pick-2.0.2.tar.gz
$ cat pick-2.0.2.tar.gz
<html><body>You are being <a href="https://github-production-release-asset-2e65be.s3.amazonaws.com/23039777/....">redirected</a>.</body></html>

In order to successfully retrieve the file, curl needs to follow this redirect.

mptre commented 6 years ago

Thanks, merged in commit a581323 and I took the opportunity to cleanup the same file in commit 1ace45f.

BTW: if you're installing pick manually on a platform where pick is not packaged, considered making it available as a package over there 😄