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