changed sync
This commit is contained in:
parent
0a549697f3
commit
4c57d200f3
@ -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
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user