]> git.e2factory.org Git - e2factory.git/commitdiff
In call_tool(), check cmd instead of tool
authorTobias Ulmer <tu@emlix.com>
Tue, 10 Jul 2012 12:23:43 +0000 (14:23 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 10 Jul 2012 12:23:43 +0000 (14:23 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 7517e142e451c36555516dd3aff5d1a69c56ec28..9c57801ae516908dacdcb95eb6e4d69e2a2d7e09 100644 (file)
@@ -1513,7 +1513,7 @@ end
 -- @return string: the last line ouf captured output
 function call_tool(tool, args)
        local cmd = tools.get_tool(tool)
-       if not tool then
+       if not cmd then
                bomb("trying to call invalid tool: " .. tostring(tool))
        end
        local flags = tools.get_tool_flags(tool)