diff options
author | 2021-05-07 02:09:13 +1000 | |
---|---|---|
committer | 2021-05-07 02:14:05 +1000 | |
commit | fab84e8d2b9177e11d334a82892dc554d128052b (patch) | |
tree | b7cbeb727891f6c09048f1f11f9dbe9576e348fe /plugins/timer/init.lua | |
parent | 075d934ff422e6b03352d91877d4ec92fb218641 (diff) |
Mostly revert "Create console history file in homepath (#8026)"
The change to make the console plugin work is preserved.
This reverts commit 25137717c9392d142650fcd679b09c400a2f5c4a.
Diffstat (limited to 'plugins/timer/init.lua')
-rw-r--r-- | plugins/timer/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/timer/init.lua b/plugins/timer/init.lua index 562f3c6a8b1..f0ddabbcf50 100644 --- a/plugins/timer/init.lua +++ b/plugins/timer/init.lua @@ -1,6 +1,6 @@ -- license:BSD-3-Clause -- copyright-holders:Carl -local util = require('util') +require('lfs') local sqlite3 = require('lsqlite3') local exports = {} exports.name = "timer" @@ -44,7 +44,7 @@ function timer.startplugin() save() end timer_started = true - util.mkdir_recursive(dir .. '/timer') + lfs.mkdir(dir .. '/timer') local db = assert(sqlite3.open(timer_db)) local found=false db:exec([[select * from sqlite_master where name='timer';]], function(...) found=true return 0 end) |