iteration

This commit is contained in:
Layla 2023-10-07 23:06:16 -04:00
parent 9e3c18bfb3
commit 51091b1d4b

View File

@ -9,7 +9,7 @@ end
response = http.get("https://gitea.layla.gg/layla/computercraft/raw/branch/main/" .. program_name .. ".lua", nil)
if response.getResponseCode() == 200 then
local file = fs.open(program_name .. ".lua", "w")
local file = fs.open("/rom/programs/" .. program_name .. ".lua", "w")
file.write(response.readAll())
file.close()
print("Updated " .. program_name .. ".lua")