11 lines
330 B
Lua
11 lines
330 B
Lua
|
|
||
|
--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")
|
||
|
file.write(getRequest.readAll())
|
||
|
file.close()
|
||
|
|
||
|
--execute sync script
|
||
|
shell.run("/main/programs/sync-1.0.lua")
|