From: Tobias Ulmer Date: Tue, 19 Nov 2013 18:28:15 +0000 (+0100) Subject: tools.check_tool(): Use argv X-Git-Tag: e2factory-2.3.15rc1~367 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=39c9e7f4b8baff66d3944cc4c2649b42ae29d328;p=e2factory.git tools.check_tool(): Use argv Signed-off-by: Tobias Ulmer --- diff --git a/generic/tools.lua b/generic/tools.lua index e0bf087..e733cbd 100644 --- a/generic/tools.lua +++ b/generic/tools.lua @@ -164,8 +164,8 @@ function tools.check_tool(name) table.insert(out, msg) end - which = { e2lib.shquote("which"), e2lib.shquote(tool.name) } - rc, re = e2lib.callcmd_capture(table.concat(which, " "), capture) + which = { "which", tool.name } + rc, re = e2lib.callcmd_capture(which, capture) if not rc then return false, re elseif rc ~= 0 then