From 63f9b2679e40f0577c1bbcdccf774c8a24784127 Mon Sep 17 00:00:00 2001 From: TheHomecraft Date: Tue, 21 Oct 2025 00:19:50 +0200 Subject: [PATCH] Tried to minimize output, didnt work --- main.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index b73b8c8..82e6ea4 100644 --- a/main.lua +++ b/main.lua @@ -3,7 +3,7 @@ local packageStoreageUrl = "/packages" if args[1] == "list" then - local res = http.get("http://localhost:7000/api/repo/list") + local res = http.get("http://192.168.178.24:7000/api/repo/list") local ds = res.readAll() print(ds) local json = textutils.unserializeJSON(ds) @@ -57,12 +57,13 @@ if args[1] == "install" then end -------------- local rec_msg = full - print(rec_msg .. "ds") + --print(rec_msg .. "ds") local file = fs.open("output.json", "w") file.write(rec_msg) file.close() local json = textutils.unserializeJSON(rec_msg) - print(json) + --print(json) + local wget = loadfile("/rom/programs/http/wget.lua") if json.statusCode == 404 then print("The Requested package was not found!") return