diff --git a/.envrc b/.envrc index fa466bb..667ef8b 100644 --- a/.envrc +++ b/.envrc @@ -1,8 +1,10 @@ export PATH="$(git rev-parse --show-toplevel)/bin:$PATH" +arch=$(uname | tr A-Z a-z) + if [[ ! -x bin/bazel ]]; then mkdir -p bin - wget https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64 \ + wget "https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-$(arch)-amd64" \ -O bin/bazel chmod a+x bin/bazel fi