Skip to content
Snippets Groups Projects
Unverified Commit f9062bda authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

build: remove exec prefix from commands with a raw suffix

Allows to append additional commands, for example using `||`.
parent 89efe55c
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,10 @@ function F.escape(s) ...@@ -99,7 +99,10 @@ function F.escape(s)
end end
local function escape_command(command, raw) local function escape_command(command, raw)
local ret = 'exec' local ret = ''
if not raw then
ret = 'exec'
end
for _, arg in ipairs(command) do for _, arg in ipairs(command) do
ret = ret .. ' ' .. F.escape(arg) ret = ret .. ' ' .. F.escape(arg)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment