• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if ! bazel version; then
2  arch=$(uname -m)
3  if [ "$arch" == "aarch64" ]; then
4    arch="arm64"
5  fi
6  echo "Downloading $arch Bazel binary from GitHub releases."
7  curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/7.1.1/bazel-7.1.1-linux-$arch"
8  chmod +x $HOME/bin/bazel
9else
10  # Bazel is installed for the correct architecture
11  exit 0
12fi
13