chore: Check source file exists before comparing timestamps (#375)
This commit is contained in:
parent
38b1537d1f
commit
71dd5edbda
|
@ -230,7 +230,9 @@ function M.check_directory(d)
|
|||
end
|
||||
|
||||
function M.check_file (f,original)
|
||||
if not path.exists(f) or path.getmtime(original) > path.getmtime(f) then
|
||||
if not path.exists(f)
|
||||
or not path.exists(original)
|
||||
or path.getmtime(original) > path.getmtime(f) then
|
||||
local text,err = utils.readfile(original)
|
||||
local _
|
||||
if text then
|
||||
|
|
Loading…
Reference in New Issue