diff --git a/ci/run_ci.py b/ci/run_ci.py index 2d07f4ef8b..cad0c73aeb 100644 --- a/ci/run_ci.py +++ b/ci/run_ci.py @@ -39,10 +39,8 @@ def _bazel(cmd: str): - if _is_windows(): - _exec_cmd(f"bazel {cmd}") - else: - _exec_cmd(f"~/bin/bazel {cmd}") + bazel_cmd = "bazel" if _is_windows() else "~/bin/bazel" + return _exec_cmd(f"{bazel_cmd} {cmd}") def _exec_cmd(cmd: str):