Skip to content

Commit

Permalink
quote hell
Browse files Browse the repository at this point in the history
  • Loading branch information
xansec committed Sep 10, 2024
1 parent d469c65 commit 8848d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mayhem/mayhem.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _mayhem_run_impl(ctx):
args_list.append("-f")
args_list.append(ctx.file.mayhemfile.path)
inputs.append(ctx.file.mayhemfile)
else: # target_path.path != "."
elif target_path.path != ".":
args_list.append("-f")
args_list.append(target_path.path + "/Mayhemfile")

Expand All @@ -234,7 +234,7 @@ def _mayhem_run_impl(ctx):
args_list.append(ctx.attr.target)
if ctx.attr.cmd:
args_list.append("--cmd")
args_list.append("\\\"{}\\\"".format(ctx.attr.cmd))
args_list.append("\"{}\"".format(ctx.attr.cmd))
if ctx.attr.image:
args_list.append("--image")
args_list.append(ctx.attr.image)
Expand Down

0 comments on commit 8848d7d

Please sign in to comment.