From e8c49b0090530165f95f138a817eec2d62183be0 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Thu, 26 Mar 2020 23:12:23 -0700 Subject: [PATCH] Improve curl invocation (#5844) - make it follow redirects - error out if an HTTP error is encountered --- scripts/download_hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download_hash.sh b/scripts/download_hash.sh index 5edfff80f..ec4b16786 100644 --- a/scripts/download_hash.sh +++ b/scripts/download_hash.sh @@ -19,7 +19,7 @@ for download in ${DOWNLOADS}; do for version in ${VERSIONS}; do TARGET="${DOWNLOAD_DIR}/${download}-$version-$arch" if [ ! -f ${TARGET} ]; then - curl -s -o ${TARGET} "https://storage.googleapis.com/kubernetes-release/release/${version}/bin/linux/${arch}/${download}" + curl -L -f -S -s -o ${TARGET} "https://storage.googleapis.com/kubernetes-release/release/${version}/bin/linux/${arch}/${download}" fi echo -e " ${version}: $(sha256sum ${TARGET} | awk '{print $1}')" done