blob: f094cff3d19e59e22bd1aecaebe43e3622ec09b2 [file] [log] [blame]
#!/bin/bash
# exit on errors
set -eu -o pipefail
BAZEL_VERSION="0.19.2"
if [ ${BAZEL_VERSION} != "none" ]
then
echo Installing bazel version ${BAZEL_VERSION}
curl -L -o bazel.sh -s https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
else
echo Not installing bazel
fi
chmod +x bazel.sh
./bazel.sh --user