This commit is contained in:
Gvidas Juknevičius 2024-08-18 15:03:36 +03:00
parent 87fb39b9bd
commit 5eb4a9edb7
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
local __UPDATE_HASH = "399a256a8643d08b369cb0171b5a609324a79303"
local __UPDATE_HASH = "33e691170d24b5e81fd7624e5ab2ad9e8c1aeb72"
local __BUNDLER_FILES = {}
local __DEFAULT_IMPORT = require
local require = function(path)
@ -25,7 +25,7 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
if update_code_request then
local update_code_text = update_code_request.readAll()
if update_code_text then
if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then
if string.find(update_code_text, "^local __UPDATE_HASH") then
if fs.exists("backup.lua") then
fs.delete("backup.lua")
end

View File

@ -21,7 +21,7 @@ local function checkForUpdate()
if update_code_request then
local update_code_text = update_code_request.readAll()
if update_code_text then
if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then
if string.find(update_code_text, "^local __UPDATE_HASH") then
-- Make backup
if fs.exists("backup.lua") then
fs.delete("backup.lua")