:3
This commit is contained in:
parent
87fb39b9bd
commit
5eb4a9edb7
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user