Update pakager.lua
This commit is contained in:
@@ -179,7 +179,8 @@ elseif operation == "install" then
|
|||||||
rednet.close()
|
rednet.close()
|
||||||
elseif i.type == "url" then
|
elseif i.type == "url" then
|
||||||
local url = i.location:gsub("{PAKAGE}",args[1])
|
local url = i.location:gsub("{PAKAGE}",args[1])
|
||||||
pak = http.get(url).readAll()
|
req = http.get(url)
|
||||||
|
if req then pak = req.readAll() end
|
||||||
end
|
end
|
||||||
if pak ~= nil and pak ~= "" then
|
if pak ~= nil and pak ~= "" then
|
||||||
install(pak)
|
install(pak)
|
||||||
|
|||||||
Reference in New Issue
Block a user