From 745de810e4a21d19286c3a4e16ba4ce2bbdb9966 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 04:07:33 -0400 Subject: [PATCH] iteration --- lib/lum.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/lum.lua b/lib/lum.lua index 5e7bd06..492bb39 100644 --- a/lib/lum.lua +++ b/lib/lum.lua @@ -4,14 +4,13 @@ local lib_path = "/lib/" local startup_path = "/startup/" function download_lua(remote_path, local_path) - response = http.get("https://gitea.layla.gg/layla/computercraft/raw/branch/" .. target_branch .. "/" .. program_name .. ".lua", nil) + response = http.get("https://gitea.layla.gg/layla/computercraft/raw/branch/" .. target_branch .. "/" .. remote_path .. ".lua", nil) if response.getResponseCode() == 200 then file = fs.open(local_path, "w") file.write(response.readAll()) file.close() - end else - io.write("Failed to update " .. program_name .. ".lua\n") + io.write("Failed to download " .. remote_path .. ".lua\n") io.write(response) end end