Skip to content

Commit 65c98e0

Browse files
committed
Add Bazel alias
1 parent f0e5c2c commit 65c98e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/bash
2+
3+
set -euo pipefail
4+
5+
bazelisk_bin=$(which bazelisk)
6+
if [[ -e ./bazelw ]]; then
7+
exec ./bazelw "$@"
8+
elif command -v "$bazelisk_bin" >/dev/null; then
9+
exec "$bazelisk_bin" "$@"
10+
fi

0 commit comments

Comments
 (0)