]> git.e2factory.org Git - e2factory.git/commitdiff
tools.check_tool(): Use argv
authorTobias Ulmer <tu@emlix.com>
Tue, 19 Nov 2013 18:28:15 +0000 (19:28 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/tools.lua

index e0bf087a581bf205ea1c732d8b25aa0505476a24..e733cbda1fdb23d6ca5451123acf9ecef0a6c8fb 100644 (file)
@@ -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