Fix dumb mistake
This commit is contained in:
parent
bb0ee3e64e
commit
610893222b
@ -33,12 +33,12 @@ local function main()
|
|||||||
shafile.close()
|
shafile.close()
|
||||||
sharequest.close()
|
sharequest.close()
|
||||||
end
|
end
|
||||||
package.path = package.path .. ";/?;/?.lua" -- hack to solve 'wget run' being dumb
|
package.path = package.path .. ";/?;/?.lua" -- hack to solve 'wget run'
|
||||||
local hash = require("sha256")
|
local hash = require("sha256")
|
||||||
|
|
||||||
log.info("Downloading index file")
|
log.info("Downloading index file")
|
||||||
local indexrequest = http.get(URLs.fileIndex)
|
local indexrequest = http.get(URLs.fileIndex)
|
||||||
local index = textutils.unserializeJson(request.readAll())
|
local index = textutils.unserializeJson(indexrequest.readAll())
|
||||||
indexrequest.close()
|
indexrequest.close()
|
||||||
|
|
||||||
if (index == nil) then
|
if (index == nil) then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user