This commit is contained in:
Gvidas Juknevičius 2024-08-25 23:19:12 +03:00
parent efc78c87b7
commit 51b6b7fc95
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 6 additions and 2 deletions

View File

@ -355,8 +355,10 @@ rawset(__BUNDLER_FILES, "updater", function ()
branch = branch, branch = branch,
url = url url = url
}; };
if not fs.exists(path) then
self:update(path, url); self:update(path, url);
end end
end
function updater:checkAndUpdateAll() function updater:checkAndUpdateAll()
local updated = false; local updated = false;
for path, entry in pairs(self.updated_files) do for path, entry in pairs(self.updated_files) do

View File

@ -32,8 +32,10 @@ function updater:addEntry(path, branch, url)
branch = branch, branch = branch,
url = url url = url
}; };
if not fs.exists(path) then
self:update(path, url); self:update(path, url);
end end
end
function updater:checkAndUpdateAll() function updater:checkAndUpdateAll()
local updated = false; local updated = false;