From d2a9d7143bd3cd77104616a1743b3d430b820340 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 10 Jul 2012 14:23:43 +0200 Subject: [PATCH] In call_tool(), check cmd instead of tool Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5