diff --git a/pakager.lua b/pakager.lua index f9efa01..c64c57f 100644 --- a/pakager.lua +++ b/pakager.lua @@ -179,7 +179,8 @@ elseif operation == "install" then rednet.close() elseif i.type == "url" then 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 if pak ~= nil and pak ~= "" then install(pak)