From e2262c37cbcabda22c0eb1795359b0ceeae74415 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 10 Jul 2013 20:09:19 +0200 Subject: [PATCH] Remove unused global variable 'last_output' Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 4b76a5f..3e9d716 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -82,7 +82,6 @@ e2lib.globals = { hostname = nil, termwidth = 72, env = {}, - last_output = false, tmpdirs = {}, tmpfiles = {}, default_projects_server = "projects", @@ -1155,12 +1154,12 @@ end -- @return unknown function e2lib.callcmd_capture(cmd, capture) local rc, oread, owrite, devnull, pid + local function autocapture(...) local msg = table.concat({...}) e2lib.log(3, msg) - e2lib.globals.last_output = msg end - e2lib.globals.last_output = false + capture = capture or autocapture rc, oread, owrite = luafile.pipe() owrite:setlinebuf() -- 2.39.5