forked from Hyperion/HyperionOS
fixed
This commit is contained in:
@@ -87,7 +87,9 @@ end
|
|||||||
|
|
||||||
local releases,page={},1
|
local releases,page={},1
|
||||||
while true do
|
while true do
|
||||||
local raw=http.get("https://git.astronand.dev/api/v1/repos/Hyperion/HyperionOS/releases?page="..tostring(page).."&limit=1")
|
local handle=http.get("https://git.astronand.dev/api/v1/repos/Hyperion/HyperionOS/releases?page="..tostring(page).."&limit=1")
|
||||||
|
local raw=handle.readAll()
|
||||||
|
handle.close()
|
||||||
if raw=="[]" then
|
if raw=="[]" then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
@@ -114,6 +116,7 @@ local function makePage(start, num)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local func, err = load(data.readAll(), "@Installer")
|
local func, err = load(data.readAll(), "@Installer")
|
||||||
|
data.close()
|
||||||
if not func then
|
if not func then
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
|
|||||||
Reference in New Issue
Block a user