From 08cb3b2c13dc7d2e756528b5d44bfe0f63d3d8db Mon Sep 17 00:00:00 2001 From: Steven Sheehy Date: Mon, 27 Feb 2023 18:07:06 -0600 Subject: [PATCH] Retry artifact downloads Signed-off-by: Steven Sheehy --- ct.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct.sh b/ct.sh index 4f776ed..f606690 100755 --- a/ct.sh +++ b/ct.sh @@ -87,8 +87,8 @@ install_chart_testing() { if [[ ! -d "$cache_dir" ]]; then mkdir -p "$cache_dir" - echo "Installing chart-testing..." - curl -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_amd64.tar.gz" + echo "Installing chart-testing ${version}..." + curl --retry 5 --retry-delay 1 -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_amd64.tar.gz" tar -xzf ct.tar.gz -C "$cache_dir" rm -f ct.tar.gz