.
This commit is contained in:
parent
7b4c344900
commit
cc6c0076aa
@ -1,25 +0,0 @@
|
||||
local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/brulijam/src"
|
||||
|
||||
local copyList = {
|
||||
[0] = "/brulijam/programs/sync.lua",
|
||||
[1] = "/startup.lua",
|
||||
[2] = "/brulijam/programs/lib/aes.lua",
|
||||
[3] = "/brulijam/programs/lib/hash.lua",
|
||||
[4] = "/brulijam/programs/lib/basic.lua",
|
||||
[5] = "/brulijam/programs/turtle-roomCreator.lua",
|
||||
[6] = "/brulijam/programs/turtle-miner-stupidExcavate.lua",
|
||||
[7] = "/brulijam/programs/turtle-miner-fibo.lua",
|
||||
[8] = "/brulijam/programs/turtle-treeFarmer.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)
|
25
src/brulijam/sync.lua
Normal file
25
src/brulijam/sync.lua
Normal file
@ -0,0 +1,25 @@
|
||||
local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/brulijam/src"
|
||||
|
||||
local copyList = {
|
||||
[0] = "/brulijam/sync.lua",
|
||||
[1] = "/startup.lua",
|
||||
[2] = "/brulijam/lib/aes.lua",
|
||||
[3] = "/brulijam/lib/hash.lua",
|
||||
[4] = "/brulijam/lib/basic.lua",
|
||||
[5] = "/brulijam/turtle-roomCreator.lua",
|
||||
[6] = "/brulijam/turtle-miner-stupidExcavate.lua",
|
||||
[7] = "/brulijam/turtle-miner-fibo.lua",
|
||||
[8] = "/brulijam/turtle-treeFarmer.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)
|
Loading…
Reference in New Issue
Block a user