- Use
curl
to get the JSON response for the latest release - Use
grep
to find the line containing file URL - Use
cut
andtr
to extract the URL - Use
wget
to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
My reason for Not doing a Release on Github (in the /username/foo-bar/releases/ page) is that I have to interact with the webgui,
as in I have to login to Github in a browser, upload whatever is part of the release and so on – just to do a release,
whereas on SourceForge I only have to do an rsync command in the terminal to do a Release, which is often automated in a script or a target in a Makefile.