2021-06-28 12:52:20 +03:00
|
|
|
export PATH="$(git rev-parse --show-toplevel)/bin:$PATH"
|
|
|
|
|
2021-07-21 16:23:57 +03:00
|
|
|
arch=$(uname | tr A-Z a-z)
|
|
|
|
|
2021-06-28 12:52:20 +03:00
|
|
|
if [[ ! -x bin/bazel ]]; then
|
|
|
|
mkdir -p bin
|
2021-07-21 16:28:33 +03:00
|
|
|
wget "https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-${arch}-amd64" \
|
2021-06-28 12:52:20 +03:00
|
|
|
-O bin/bazel
|
|
|
|
chmod a+x bin/bazel
|
|
|
|
fi
|