From 5a581c519f32db4cc54a0eb86512f3fdd3217276 Mon Sep 17 00:00:00 2001 From: hkc Date: Fri, 12 Jan 2024 19:31:30 +0300 Subject: [PATCH] Read entire update file --- turtos/startup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turtos/startup.lua b/turtos/startup.lua index 16380c6..dd4a281 100644 --- a/turtos/startup.lua +++ b/turtos/startup.lua @@ -12,7 +12,7 @@ end if fs.exists("/disk/update.json") then local info_fp = io.open("/disk/update.json", "r") - local info = textutils.unserializeJSON(info_fp:read()) + local info = textutils.unserializeJSON(info_fp:read("a")) info_fp:close() print("OTP version: " .. info.ver) print("H/W version: " .. _TOS_VER)