Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Created December 30, 2020 21:52
Show Gist options
  • Save Justintime50/d998ac4711171dcc16fd3f366d13cd31 to your computer and use it in GitHub Desktop.
Save Justintime50/d998ac4711171dcc16fd3f366d13cd31 to your computer and use it in GitHub Desktop.
Install an executable into your path from a tar archive
# 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