Update pakager.lua

This commit is contained in:
Caden Ream
2024-07-10 12:10:36 -07:00
committed by GitHub
parent 2763627193
commit a5178c4219

View File

@@ -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)