Created
December 30, 2020 21:52
-
-
Save Justintime50/d998ac4711171dcc16fd3f366d13cd31 to your computer and use it in GitHub Desktop.
Install an executable into your path from a tar archive
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
# Install an executable into your path from a tar archive | |
URL="https://github.com/Justintime50/freedom/releases/download/v0.2.0/freedom_0.2.0_linux_amd64.tar.gz" \ | |
TAR=${URL##*/} \ | |
BINARY="free" \ | |
curl -LJO "$URL" && tar -xf "$TAR" "$BINARY" && mv "$BINARY" "$HOME/bin/$BINARY" && rm "$TAR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment