From: Tobias Ulmer Date: Tue, 10 Jul 2012 12:23:43 +0000 (+0200) Subject: In call_tool(), check cmd instead of tool X-Git-Tag: e2factory-2.3.12rc1~30 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=d2a9d7143bd3cd77104616a1743b3d430b820340;p=e2factory.git In call_tool(), check cmd instead of tool Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 7517e14..9c57801 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -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)