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 = { local copyList = {
[0] = "/main/programs/sync.lua", [0] = "/main/programs/sync.lua",
[1] = "/main/lib/aes.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 for i=0, #copyList do

View File

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