Last active
June 23, 2018 04:30
-
-
Save simonkowallik/4be69121a99ebaf1b37ca063c533c798 to your computer and use it in GitHub Desktop.
download latest release from github
This file contains 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
function download_latest_github_release() { | |
release=$(curl --silent "https://api.github.com/repos/$1/releases/latest" | | |
grep -Po '"tag_name": "\K.*?(?=")') | |
curl -sLO https://github.com/$1/archive/${release}.tar.gz | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment