Skip to content

Commit

Permalink
[Development] Fix unbound BUILDKITE variable in install-bazel.sh (r…
Browse files Browse the repository at this point in the history
…ay-project#35181)

The contribution docs instruct the user to run install-bazel.sh to install Bazel. However, this script errors with

install-bazel.sh: line 119: BUILDKITE: unbound variable
This PR fixes the error by providing a default value for the BUILDKITE variable when it's used in the script. The change ensures that if BUILDKITE is not set, it will be treated as an empty string, and the script will not throw an error.
  • Loading branch information
architkulkarni committed May 17, 2023
1 parent 1bd30c3 commit ae5e1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/env/install-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if [ "${TRAVIS-}" = true ]; then
echo "build --jobs=50" >> ~/.bazelrc
fi

if [ "$BUILDKITE" = "true" ]; then
if [ "${BUILDKITE-}" = "true" ]; then
cp "${ROOT_DIR}"/../../.bazeliskrc ~/.bazeliskrc
fi

Expand Down

0 comments on commit ae5e1c7

Please sign in to comment.