summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Lebedeff <binarin@binarin.ru>2023-02-01 16:40:36 +0100
committerAlexey Lebedeff <binarin@binarin.ru>2023-02-01 16:40:36 +0100
commit97b7e19059c5ccfa7db162fd8dfc6031a1da8b23 (patch)
tree4966624cc671794c5ff7f1248abc9cb52b6c1c7f
parent67c123f91fbf8736bcdfb3efa519d0b84fb67f9a (diff)
downloadrabbitmq-server-git-97b7e19059c5ccfa7db162fd8dfc6031a1da8b23.tar.gz
Fix shell quoting in bazel rabbitmqctl helper
E.g. any complex `rabbitmqctl eval` was not possible via `bazel run rabbitmqctl`.
-rw-r--r--rabbitmqctl.bzl2
1 files changed, 1 insertions, 1 deletions
diff --git a/rabbitmqctl.bzl b/rabbitmqctl.bzl
index 237fcf34ef..4b35da95b6 100644
--- a/rabbitmqctl.bzl
+++ b/rabbitmqctl.bzl
@@ -4,7 +4,7 @@ def _impl(ctx):
rabbitmq_home_path = rabbitmq_home_short_path(ctx.attr.home)
script = """
- exec ./{home}/sbin/{cmd} $@
+ exec ./{home}/sbin/{cmd} "$@"
""".format(
home = rabbitmq_home_path,
cmd = ctx.label.name,