Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

dowload latest release github curl

curl --silent "https://api.github.com/repos/USER/REPO/releases/latest" | # Get latest release from GitHub api
    grep '"tag_name":' |                                                 # Get tag line
    sed -E 's/.*"([^"]+)".*/1/' |
    xargs -I {} curl -sOL "https://github.com/USER/REPO/archive/"{}'.tar.gz'
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #dowload #latest #release #github #curl
ADD COMMENT
Topic
Name
4+7 =