Ensure bash is invoked as a login shell on windows otherwise fixups fail. (#16580)

This commit is contained in:
Andy Kernahan 2018-02-05 23:33:50 +00:00 committed by Jonathan Hseu
parent a9485a4b59
commit 4e1ebbc287

View File

@ -27,7 +27,7 @@ def _wrap_bash_cmd(ctx, cmd):
bazel_sh = _get_env_var(ctx, "BAZEL_SH") bazel_sh = _get_env_var(ctx, "BAZEL_SH")
if not bazel_sh: if not bazel_sh:
fail("BAZEL_SH environment variable is not set") fail("BAZEL_SH environment variable is not set")
cmd = [bazel_sh, "-c", " ".join(cmd)] cmd = [bazel_sh, "-l", "-c", " ".join(cmd)]
return cmd return cmd
def _get_env_var(ctx, name): def _get_env_var(ctx, name):