iteration
This commit is contained in:
parent
9e3c18bfb3
commit
51091b1d4b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user