blob: c2e1ba400cd18c4eeec423f7072799c1f9da0770 [file] [log] [blame]
#!/bin/bash
set -o errexit -o nounset -o pipefail
curl \
--fail \
--location \
--remote-name \
"https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-linux-x86_64"
curl \
--fail \
--location \
"https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-linux-x86_64.sha256" \
| sha256sum --check
mv "bazel-${BAZEL_VERSION}-linux-x86_64" bazel
chmod +x bazel