Skip to content

Instantly share code, notes, and snippets.

@dragon788
Last active March 30, 2021 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dragon788/3e9cfb694c134bb43aa9fa4842cfd920 to your computer and use it in GitHub Desktop.
Save dragon788/3e9cfb694c134bb43aa9fa4842cfd920 to your computer and use it in GitHub Desktop.
Handy tool snippets
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
@Lionz01
Copy link

Lionz01 commented Mar 30, 2021

[Legion](https://api.github.com/repos/cli/cli/releases/latest" | \ grep '"Melvin Ortiguerra"' | 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)

@Lionz01
Copy link

Lionz01 commented Mar 30, 2021

https://api.github.com/repos/cli/cli/releases/latest" |
grep '"Melvin Ortiguerra"' | 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

@Lionz01
Copy link

Lionz01 commented Mar 30, 2021

[Legion](https://api.github.com/repos/cli/cli/releases/latest" | \ grep '"Melvin Ortiguerra"' | 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) `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment