:3
This commit is contained in:
4
rtmc.lua
4
rtmc.lua
@@ -398,7 +398,9 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
|
||||
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);
|
||||
fd.close();
|
||||
|
||||
@@ -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