From e473b8a9f88a590343a08c7ac122b8bda49683fa Mon Sep 17 00:00:00 2001 From: Revan Sopher Date: Tue, 23 Oct 2018 13:47:03 -0700 Subject: [PATCH] Explicitly quote every command piece. PiperOrigin-RevId: 218399942 --- third_party/repo.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/repo.bzl b/third_party/repo.bzl index 6fe80c16941..07b853ff11c 100644 --- a/third_party/repo.bzl +++ b/third_party/repo.bzl @@ -26,7 +26,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, "-l", "-c", " ".join(cmd)] + cmd = [bazel_sh, "-l", "-c", " ".join(["\"%s\"" % s for s in cmd])] return cmd def _get_env_var(ctx, name):