diff --git a/src/updater.lua b/src/updater.lua index ad06af0..49990af 100644 --- a/src/updater.lua +++ b/src/updater.lua @@ -17,6 +17,9 @@ local function checkForUpdate() if update_code_text then if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then -- Make backup + if fs.exists("backup.lua") then + fs.delete("backup.lua") + end fs.copy("startup.lua", "backup.lua") if not string.find(update_code_text, KEYPADOS_UPDATE_HASH) then