i might be stupid :(

This commit is contained in:
xomf 2024-08-17 22:47:50 -04:00
parent c47f089395
commit 591a61d67e
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
--make backup --make backup
fs.copy("startup.lua","backup.lua") fs.copy("startup.lua","backup.lua")
local startup_file = fs.open("startup.lua", "r") local startup_file = fs.open("startup.lua", "r")
local startup_contents = file.readAll() local startup_contents = startup_file.readAll()
file.close() file.close()
if update_code_text ~= startup_contents then if update_code_text ~= startup_contents then
local file = fs.open("startup.lua", "w") local file = fs.open("startup.lua", "w")

View File

@ -20,8 +20,8 @@ local function checkForUpdate()
fs.copy("startup.lua","backup.lua") fs.copy("startup.lua","backup.lua")
local startup_file = fs.open("startup.lua", "r") local startup_file = fs.open("startup.lua", "r")
local startup_contents = file.readAll() local startup_contents = startup_file.readAll()
file.close() startup_file.close()
if update_code_text ~= startup_contents then if update_code_text ~= startup_contents then
local file = fs.open("startup.lua", "w") local file = fs.open("startup.lua", "w")