From 51b6b7fc950f7ab971cb0dc9e46215fb0f2d2feb Mon Sep 17 00:00:00 2001 From: MCorange Date: Sun, 25 Aug 2024 23:19:12 +0300 Subject: [PATCH] :3 --- rtmc.lua | 4 +++- src/updater.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rtmc.lua b/rtmc.lua index 340da74..0cbafef 100644 --- a/rtmc.lua +++ b/rtmc.lua @@ -355,7 +355,9 @@ rawset(__BUNDLER_FILES, "updater", function () branch = branch, url = url }; - self:update(path, url); + if not fs.exists(path) then + self:update(path, url); + end end function updater:checkAndUpdateAll() local updated = false; diff --git a/src/updater.lua b/src/updater.lua index 24bcde4..75379b0 100644 --- a/src/updater.lua +++ b/src/updater.lua @@ -32,7 +32,9 @@ function updater:addEntry(path, branch, url) branch = branch, url = url }; - self:update(path, url); + if not fs.exists(path) then + self:update(path, url); + end end function updater:checkAndUpdateAll()