aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon-RRD-rescue.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-panopticon-RRD-rescue.lua b/apt-panopticon-RRD-rescue.lua
index 44fe2e6..461ae39 100755
--- a/apt-panopticon-RRD-rescue.lua
+++ b/apt-panopticon-RRD-rescue.lua
@@ -10,7 +10,7 @@ local arg, sendArgs = APT.parseArgs({...})
10 10
11os.execute('rm -fr rrd') 11os.execute('rm -fr rrd')
12 12
13local files = io.popen('ls -1 *.tar.xz') 13local files = io.popen('ls -1 results_*.tar.xz')
14for l in files:lines() do 14for l in files:lines() do
15 print('tar -xf ' .. l) 15 print('tar -xf ' .. l)
16 os.execute('tar -xf ' .. l) 16 os.execute('tar -xf ' .. l)
@@ -38,3 +38,9 @@ for l in files:lines() do
38 end 38 end
39 end 39 end
40end 40end
41
42local files = io.popen('ls -1 results_*.tar.xz')
43for l in files:lines() do
44 print('rm -rf ' .. l:sub(1, 24))
45 os.execute('rm -rf ' .. l:sub(1, 24))
46end