forked from hkc/cc-stuff
Read entire update file
This commit is contained in:
parent
46d68ca483
commit
5a581c519f
|
@ -12,7 +12,7 @@ end
|
||||||
|
|
||||||
if fs.exists("/disk/update.json") then
|
if fs.exists("/disk/update.json") then
|
||||||
local info_fp = io.open("/disk/update.json", "r")
|
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()
|
info_fp:close()
|
||||||
print("OTP version: " .. info.ver)
|
print("OTP version: " .. info.ver)
|
||||||
print("H/W version: " .. _TOS_VER)
|
print("H/W version: " .. _TOS_VER)
|
||||||
|
|
Loading…
Reference in New Issue