Fix shell quoting in bazel rabbitmqctl helper

E.g. any complex `rabbitmqctl eval` was not possible via `bazel run rabbitmqctl`.
This commit is contained in:
Alexey Lebedeff 2023-02-01 16:40:36 +01:00
parent 67c123f91f
commit 97b7e19059
1 changed files with 1 additions and 1 deletions

View File

@ -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,