diff options
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon-RRD-rescue.lua | 8 |
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 | ||
11 | os.execute('rm -fr rrd') | 11 | os.execute('rm -fr rrd') |
12 | 12 | ||
13 | local files = io.popen('ls -1 *.tar.xz') | 13 | local files = io.popen('ls -1 results_*.tar.xz') |
14 | for l in files:lines() do | 14 | for 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 |
40 | end | 40 | end |
41 | |||
42 | local files = io.popen('ls -1 results_*.tar.xz') | ||
43 | for l in files:lines() do | ||
44 | print('rm -rf ' .. l:sub(1, 24)) | ||
45 | os.execute('rm -rf ' .. l:sub(1, 24)) | ||
46 | end | ||