diff options
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-x | apt-panopticon.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 675754d..7ef300c 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -1078,9 +1078,7 @@ else | |||
1078 | :And('rm -fr ' .. adt):noErr():fork() | 1078 | :And('rm -fr ' .. adt):noErr():fork() |
1079 | end | 1079 | end |
1080 | local dt = os.date('!%F-%H-%M') | 1080 | local dt = os.date('!%F-%H-%M') |
1081 | local fodt = io.popen('TZ="GMT" date -r results/stamp +%F-%H-%M 2>/dev/null', 'r') | 1081 | local odt = APT.exe('TZ="GMT" date -r results/stamp +%F-%H-%M 2>/dev/null', 'r').result:sub(2, -2) |
1082 | local odt = fodt:read('*l') | ||
1083 | fodt:close() | ||
1084 | if nil ~= odt then os.execute(' rm -f results_old; ln -s results_' .. odt .. ' results_old 2>/dev/null') end | 1082 | if nil ~= odt then os.execute(' rm -f results_old; ln -s results_' .. odt .. ' results_old 2>/dev/null') end |
1085 | if nil ~= dt then os.execute('mkdir -p results_' .. dt .. '; rm -f results; ln -s results_' .. dt .. ' results 2>/dev/null') end | 1083 | if nil ~= dt then os.execute('mkdir -p results_' .. dt .. '; rm -f results; ln -s results_' .. dt .. ' results 2>/dev/null') end |
1086 | os.execute('if [ -f results/stamp ]; then mv results/stamp results/stamp.old; else touch results/stamp.old -t 199901010000; fi; touch results/stamp') | 1084 | os.execute('if [ -f results/stamp ]; then mv results/stamp results/stamp.old; else touch results/stamp.old -t 199901010000; fi; touch results/stamp') |