:3
This commit is contained in:
@@ -91,7 +91,9 @@ function updater:update(path, url)
|
||||
if fs.exists(path .. ".bak") then
|
||||
fs.delete(path .. ".bak");
|
||||
end
|
||||
fs.copy(path, path..".bak");
|
||||
if fs.exists(path) then
|
||||
fs.copy(path, path..".bak");
|
||||
end
|
||||
|
||||
local fd = fs.open(path, "w");
|
||||
fd.write(body);
|
||||
|
||||
Reference in New Issue
Block a user