From 8848d7d1dced1e7fbe354780bff7f7ae9b16c757 Mon Sep 17 00:00:00 2001 From: xansec Date: Tue, 10 Sep 2024 03:55:22 -0400 Subject: [PATCH] quote hell --- mayhem/mayhem.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayhem/mayhem.bzl b/mayhem/mayhem.bzl index 83db691..4c8f661 100644 --- a/mayhem/mayhem.bzl +++ b/mayhem/mayhem.bzl @@ -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") @@ -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)