build: remove exec prefix from commands with a raw suffix
Allows to append additional commands, for example using `||`.
This commit is contained in:
parent
89efe55c7c
commit
f9062bda0b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user