From f9062bda0b367b706ac2d332f4a4bd3acac20448 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 3 May 2020 18:24:32 +0200 Subject: [PATCH] build: remove exec prefix from commands with a raw suffix Allows to append additional commands, for example using `||`. --- scripts/target_lib.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/target_lib.lua b/scripts/target_lib.lua index 90ca9082..d669928f 100644 --- a/scripts/target_lib.lua +++ b/scripts/target_lib.lua @@ -99,7 +99,10 @@ function F.escape(s) end local function escape_command(command, raw) - local ret = 'exec' + local ret = '' + if not raw then + ret = 'exec' + end for _, arg in ipairs(command) do ret = ret .. ' ' .. F.escape(arg) end