build: remove exec prefix from commands with a raw suffix

Allows to append additional commands, for example using `||`.
This commit is contained in:
Matthias Schiffer 2020-05-03 18:24:32 +02:00
parent 89efe55c7c
commit f9062bda0b
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 4 additions and 1 deletions

View File

@ -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