1
0
Fork 0

Read entire update file

This commit is contained in:
Casey 2024-01-12 19:31:30 +03:00
parent 46d68ca483
commit 5a581c519f
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -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)