mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-24 17:32:13 +03:00
16 lines
443 B
Bash
Executable File
16 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
GH_ARCH="amd64"
|
|
|
|
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_${GH_ARCH}.tar.gz" -o "gh_${VERSION}_linux_${GH_ARCH}.tar.gz"
|
|
|
|
tar xf "gh_${VERSION}_linux_${GH_ARCH}.tar.gz"
|
|
|
|
cp "gh_${VERSION}_linux_${GH_ARCH}/bin/gh" /usr/local/bin/
|
|
|
|
gh --version
|