Ensure bash is invoked as a login shell on windows otherwise fixups fail. (#16580)
This commit is contained in:
parent
a9485a4b59
commit
4e1ebbc287
2
third_party/repo.bzl
vendored
2
third_party/repo.bzl
vendored
@ -27,7 +27,7 @@ def _wrap_bash_cmd(ctx, cmd):
|
||||
bazel_sh = _get_env_var(ctx, "BAZEL_SH")
|
||||
if not bazel_sh:
|
||||
fail("BAZEL_SH environment variable is not set")
|
||||
cmd = [bazel_sh, "-c", " ".join(cmd)]
|
||||
cmd = [bazel_sh, "-l", "-c", " ".join(cmd)]
|
||||
return cmd
|
||||
|
||||
def _get_env_var(ctx, name):
|
||||
|
Loading…
Reference in New Issue
Block a user