mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 20:00:15 +10:00
fix: stop install on error (#2414)
This commit is contained in:
@@ -4,8 +4,14 @@ set -ex
|
|||||||
|
|
||||||
GH_ARCH="amd64"
|
GH_ARCH="amd64"
|
||||||
|
|
||||||
TAG=$( curl --retry 12 --retry-delay 30 "https://api.github.com/repos/cli/cli/releases/latest" | jq --raw-output '.tag_name' )
|
TAG=$( curl --retry 12 --retry-delay 30 "https://api.github.com/repos/cli/cli/releases/latest" 2>/dev/null | jq --raw-output '.tag_name' )
|
||||||
VERSION=${TAG#v}
|
|
||||||
|
if [[ $? -ne 0 ]] || [[ -z "${TAG}" ]]; then
|
||||||
|
echo "Error: Failed to retrieve the latest tag from GitHub CLI releases."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSION="${TAG#v}"
|
||||||
|
|
||||||
curl --retry 12 --retry-delay 120 -sSL "https://github.com/cli/cli/releases/download/${TAG}/gh_${VERSION}_linux_${GH_ARCH}.tar.gz" -o "gh_${VERSION}_linux_${GH_ARCH}.tar.gz"
|
curl --retry 12 --retry-delay 120 -sSL "https://github.com/cli/cli/releases/download/${TAG}/gh_${VERSION}_linux_${GH_ARCH}.tar.gz" -o "gh_${VERSION}_linux_${GH_ARCH}.tar.gz"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user