mirror of
https://github.com/kepler155c/opus
synced 2025-01-01 03:10:28 +00:00
oops 2
This commit is contained in:
parent
08791e87a3
commit
86be65f026
@ -405,7 +405,11 @@ function Util.readFile(fname)
|
||||
end
|
||||
|
||||
function Util.backup(fname)
|
||||
fs.copy(fname, fname .. '.bak')
|
||||
local backup = fname .. '.bak'
|
||||
if backup then
|
||||
fs.delete(backup)
|
||||
end
|
||||
fs.copy(fname, backup)
|
||||
end
|
||||
|
||||
function Util.writeFile(fname, data)
|
||||
|
Loading…
Reference in New Issue
Block a user