From c5025375de2d902bb613c78033c604105b7dc612 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 12 Nov 2019 02:37:11 +1000 Subject: Move the execute function to near the checkExes function. --- apt-panopticon.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 40c308d..227bec1 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -201,6 +201,11 @@ local testing = function(t, host) return false end +local execute = function (s) + D(" executing " .. s) + return os.execute(s) +end + local checkExes = function (exe) local count = io.popen('ps x | grep "' .. exe .. '" | grep -v " grep " | wc -l'):read("*l") D(count .. " " .. exe .. " commands still running.") @@ -369,11 +374,6 @@ local checkFiles = function (host, ip, path, file) end end -local execute = function (s) - D(" executing " .. s) - os.execute(s) -end - checkHost = function (orig, host, path, ip, file) if nil == host then host = orig end if nil == path then path = "" end -- cgit v1.1