iteration
This commit is contained in:
parent
c2cef57703
commit
32ea690dd4
@ -6,7 +6,7 @@ if program_name == nil then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
http.get("https://raw.githubusercontent.com/justync7/cc-programs/master/" .. program_name .. ".lua", nil, function(response)
|
http.get("https://gitea.layla.gg/layla/computercraft/raw/branch/main/" .. program_name .. ".lua", nil, function(response)
|
||||||
if response.getResponseCode() == 200 then
|
if response.getResponseCode() == 200 then
|
||||||
local file = fs.open(program_name .. ".lua", "w")
|
local file = fs.open(program_name .. ".lua", "w")
|
||||||
file.write(response.readAll())
|
file.write(response.readAll())
|
||||||
@ -14,6 +14,7 @@ http.get("https://raw.githubusercontent.com/justync7/cc-programs/master/" .. pro
|
|||||||
print("Updated " .. program_name .. ".lua")
|
print("Updated " .. program_name .. ".lua")
|
||||||
else
|
else
|
||||||
print("Failed to update " .. program_name .. ".lua")
|
print("Failed to update " .. program_name .. ".lua")
|
||||||
|
print(response)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user