From fab84e8d2b9177e11d334a82892dc554d128052b Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 7 May 2021 02:09:13 +1000 Subject: Mostly revert "Create console history file in homepath (#8026)" The change to make the console plugin work is preserved. This reverts commit 25137717c9392d142650fcd679b09c400a2f5c4a. --- plugins/timer/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/timer') 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) -- cgit v1.2.3-70-g09d2