mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
11 lines
283 B
Bash
11 lines
283 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
set -e
|
||
|
|
|
||
|
|
bazelBin=$(node -p "require('@bazel/bazel').getNativeBinary()")
|
||
|
|
|
||
|
|
# Provide the bazel binary globally. We don't want to access the binary
|
||
|
|
# through Node as it could result in limited memory.
|
||
|
|
sudo chmod a+x ${bazelBin}
|
||
|
|
sudo ln -fs ${bazelBin} /usr/local/bin/bazel
|