From fc770788681fab2079ee60fe3ad13c979a5dd22d Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Tue, 31 Jan 2023 17:13:55 +0100 Subject: [PATCH] fix: remove retry-all-errors option [skip ci] --- install_gh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_gh.sh b/install_gh.sh index 05c75b1..395dfc7 100755 --- a/install_gh.sh +++ b/install_gh.sh @@ -4,9 +4,9 @@ set -ex GH_ARCH="amd64" -VERSION=`curl --retry 12 --retry-delay 30 --retry-all-errors "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-` +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 --retry-all-errors -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" +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"