changed sync

This commit is contained in:
Julian Brammer 2024-05-31 23:50:44 +02:00
parent 0a549697f3
commit 4c57d200f3
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,8 @@ local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/
local copyList = {
[0] = "/main/programs/sync.lua",
[1] = "/main/lib/aes.lua",
[2] = "/main/lib/hash.lua"
[2] = "/main/lib/hash.lua",
[3] = "/main/programs/turtle-roomCreator.lua"
}
for i=0, #copyList do

View File

@ -1,10 +1,10 @@
--fetch sync script
local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
getRequest = http.get(prefix .. "/main/programs/sync-1.0.lua")
file = fs.open("/main/programs/sync-1.0.lua", "w")
getRequest = http.get(prefix .. "/main/programs/sync.lua")
file = fs.open("/main/programs/sync.lua", "w")
file.write(getRequest.readAll())
file.close()
--execute sync script
shell.run("/main/programs/sync-1.0.lua")
shell.run("/main/programs/sync.lua")