aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 1675e73..f4613ea 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -974,7 +974,7 @@ else
974 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") 974 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2")
975 local adt = fadt:read('*l') 975 local adt = fadt:read('*l')
976 fadt:close() 976 fadt:close()
977 if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz') end 977 if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end
978 local dt = os.date('!%Y-%m-%d-%H-%M') 978 local dt = os.date('!%Y-%m-%d-%H-%M')
979 local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r') 979 local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r')
980 local odt = fodt:read('*l') 980 local odt = fodt:read('*l')
@@ -1027,6 +1027,7 @@ else
1027 end 1027 end
1028 end 1028 end
1029 1029
1030 while 1 <= APT.checkExes('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz') do os.execute("sleep 10") end
1030 if nil ~= adt then os.execute('rm -fr ' .. adt .. ' 2>/dev/null') end 1031 if nil ~= adt then os.execute('rm -fr ' .. adt .. ' 2>/dev/null') end
1031 1032
1032 I('Total run time was ' .. (os.time() - now) .. ' seconds.') 1033 I('Total run time was ' .. (os.time() - now) .. ' seconds.')