i might be stupid :(
This commit is contained in:
@@ -20,8 +20,8 @@ local function checkForUpdate()
|
||||
fs.copy("startup.lua","backup.lua")
|
||||
|
||||
local startup_file = fs.open("startup.lua", "r")
|
||||
local startup_contents = file.readAll()
|
||||
file.close()
|
||||
local startup_contents = startup_file.readAll()
|
||||
startup_file.close()
|
||||
|
||||
if update_code_text ~= startup_contents then
|
||||
local file = fs.open("startup.lua", "w")
|
||||
|
||||
Reference in New Issue
Block a user