Skip to content
Snippets Groups Projects
Unverified Commit e8c49b00 authored by Craig Rodrigues's avatar Craig Rodrigues Committed by GitHub
Browse files

Improve curl invocation (#5844)

- make it follow redirects
- error out if an HTTP error is encountered
parent 3dd51cd6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment