Created
March 11, 2022 21:00
-
-
Save moukrea/456d32814f1f7124913bd97484dc9631 to your computer and use it in GitHub Desktop.
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
repository="name/package" | |
destination="/home/username" | |
package_name="mypackage" | |
curl -Lso ${destination}/${package_name} "$(curl -s https://api.github.com/repos/${repository}/releases/latest | grep browser_download_url | grep _amd64 | grep linux | grep -v .tar.gz | cut -d '"' -f 4)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment