mirror of
https://github.com/VSCodium/vscodium
synced 2024-08-27 21:09:56 +00:00
16 lines
501 B
Bash
Executable file
16 lines
501 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
GH_ARCH="amd64"
|
|
|
|
VERSION=`curl --retry 12 --retry-delay 30 "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-`
|
|
|
|
curl --retry 12 --retry-delay 120 -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
|