| #!/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 |