From 591a61d67e3f7873838d12e8931225ee5a9c5eee Mon Sep 17 00:00:00 2001 From: xomf Date: Sat, 17 Aug 2024 22:47:50 -0400 Subject: [PATCH] i might be stupid :( --- keypadOS.lua | 2 +- src/updater.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keypadOS.lua b/keypadOS.lua index d1bfe48..257bc05 100644 --- a/keypadOS.lua +++ b/keypadOS.lua @@ -27,7 +27,7 @@ rawset(__BUNDLER_FILES, "updater.lua", function () --make backup fs.copy("startup.lua","backup.lua") local startup_file = fs.open("startup.lua", "r") - local startup_contents = file.readAll() + local startup_contents = startup_file.readAll() file.close() if update_code_text ~= startup_contents then local file = fs.open("startup.lua", "w") diff --git a/src/updater.lua b/src/updater.lua index 559373e..8f5a529 100644 --- a/src/updater.lua +++ b/src/updater.lua @@ -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")