23 lines
655 B
Lua
23 lines
655 B
Lua
local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
|
|
|
local copyList = {
|
|
[0] = "/main/programs/sync.lua",
|
|
[1] = "/main/programs/lib/aes.lua",
|
|
[2] = "/main/programs/lib/hash.lua",
|
|
[3] = "/main/programs/lib/basic.lua",
|
|
[4] = "/main/programs/turtle-roomCreator.lua",
|
|
[5] = "/main/programs/turtle-miner-stupidExcavate.lua",
|
|
[6] = "/main/programs/turtle-miner-fibo.lua"
|
|
|
|
}
|
|
|
|
for i=0, #copyList do
|
|
getRequest = http.get(prefix .. copyList[i])
|
|
print("Downloaded " .. copyList[i])
|
|
file = fs.open(copyList[i], "w")
|
|
file.write(getRequest.readAll())
|
|
file.close()
|
|
end
|
|
print("Sync complete")
|
|
sleep(1)
|