make curl fail loudly for non-2xx downloads
`curl` fails silently if the status code of the response is not 2xx. This CL makes it fail loudly, and break the pipe.
Closes #11800.
PiperOrigin-RevId: 322353682
diff --git a/scripts/docs/doc_versions.bzl b/scripts/docs/doc_versions.bzl
index 4c62ccd..6e893dc 100644
--- a/scripts/docs/doc_versions.bzl
+++ b/scripts/docs/doc_versions.bzl
@@ -15,7 +15,7 @@
# To get the checksum of the versioned documentation tree tarball, run the
# following command with the selected Bazel version:
#
-# $ curl -s https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-0.20.0.tar | sha256sum | cut -d" " -f1
+# $ curl -fs https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-0.20.0.tar | sha256sum | cut -d" " -f1
# bb79a63810bf1b0aa1f89bd3bbbeb4a547a30ab9af70c9be656cc6866f4b015b
#
# This list must be kept in sync with `doc_versions` variable in //site:_config.yml