.
This commit is contained in:
parent
305dc7b18b
commit
49da7a7a44
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
--fetch sync script
|
--fetch sync script
|
||||||
local repo = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
local repo = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
||||||
getRequest = http.get(repo .. "/brulijam/programs/sync.lua")
|
getRequest = http.get(repo .. "/brulijam/sync.lua")
|
||||||
file = fs.open("/brulijam/programs/sync.lua", "w")
|
file = fs.open("/brulijam/sync.lua", "w")
|
||||||
file.write(getRequest.readAll())
|
file.write(getRequest.readAll())
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
--execute sync script
|
--execute sync script
|
||||||
shell.run("/brulijam/programs/sync.lua")
|
shell.run("/brulijam/sync.lua")
|
||||||
|
|
||||||
--task.lua contains stuff that should be done after boot
|
--task.lua contains stuff that should be done after boot
|
||||||
if not (fs.exists("brulijam/task.lua")) then
|
if not (fs.exists("brulijam/task.lua")) then
|
||||||
|
Loading…
Reference in New Issue
Block a user