From 9ea82331efc967178949eb8621c04e56da35964a Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Wed, 1 Sep 2021 12:33:41 -0700 Subject: [PATCH] Add --retry to osie download, make curl options more obvious Signed-off-by: Thomas Stromberg --- setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 102390dd8..bbd4b39b4 100755 --- a/setup.sh +++ b/setup.sh @@ -257,7 +257,12 @@ setup_osie() ( pushd "$SCRATCH" if [ -z "${TB_OSIE_TAR:-}" ]; then - curl -fsSL 'https://tinkerbell-oss.s3.amazonaws.com/osie-uploads/latest.tar.gz' -o ./osie.tar.gz + curl --fail \ + --location \ + --retry 3 \ + --show-error \ + --silent \ + 'https://tinkerbell-oss.s3.amazonaws.com/osie-uploads/latest.tar.gz' -o ./osie.tar.gz tar -zxf osie.tar.gz else tar -zxf "$TB_OSIE_TAR"