Created
September 3, 2022 08:05
-
-
Save RaminMT/c1c2cb19a7ad73f5d0202177e2fa2049 to your computer and use it in GitHub Desktop.
Get latest release from Github releases & extract a file
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
curl -s https://api.github.com/repos/peak/s5cmd/releases/latest \ | |
| jq -r '.assets[].browser_download_url' \ | |
| grep '.*Linux-64.*' \ | |
| wget -qi - -O- \ | |
| tar xvzf - s5cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment