Skip to content

Commit

Permalink
Improve curl invocation (kubernetes-sigs#5844)
Browse files Browse the repository at this point in the history
- make it follow redirects
- error out if an HTTP error is encountered
  • Loading branch information
Craig Rodrigues authored Mar 27, 2020
1 parent 3dd51cd commit e8c49b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/download_hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8c49b0

Please sign in to comment.