VERSION=`curl "https://api.github.com/repos/cli/cli/releases/latest" | \
grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-`; \
curl -sSL https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz | \
sudo tar xzfC - /usr/local --strip-components=1
Last active
March 30, 2021 15:57
-
-
Save dragon788/3e9cfb694c134bb43aa9fa4842cfd920 to your computer and use it in GitHub Desktop.
Handy tool snippets
Lionz01
commented
Mar 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment