Improve curl invocation (#5844)
- make it follow redirects - error out if an HTTP error is encountered
This commit is contained in:
parent
3dd51cd648
commit
e8c49b0090
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ for download in ${DOWNLOADS}; do
|
||||||
for version in ${VERSIONS}; do
|
for version in ${VERSIONS}; do
|
||||||
TARGET="${DOWNLOAD_DIR}/${download}-$version-$arch"
|
TARGET="${DOWNLOAD_DIR}/${download}-$version-$arch"
|
||||||
if [ ! -f ${TARGET} ]; then
|
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
|
fi
|
||||||
echo -e " ${version}: $(sha256sum ${TARGET} | awk '{print $1}')"
|
echo -e " ${version}: $(sha256sum ${TARGET} | awk '{print $1}')"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue