-
-
Save libook/af6b0c0d3f743b0981d2bf67f1ef64ca to your computer and use it in GitHub Desktop.
Download latest GitHub project release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
for url in `curl --silent https://api.github.com/repos/$1/releases/latest | awk '/browser_download_url/ { print $2 }' | sed 's/"//g'` | |
do | |
echo $url | |
curl -LOk $url | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment