check arch when downloading bazel
This commit is contained in:
parent
37953e9cd3
commit
1c86c6e5c7
4
.envrc
4
.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
|
||||
|
Loading…
Reference in New Issue
Block a user