Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- turtle bootstrap
- simple program to get a bunch of other programs in one run
- of 'pastebin get'
- Usage:
- > pastebin get 55tqszpw bootstrap
- > bootstrap
- --]]
- http_runs = {
- ["pastebin"] = {
- -- github loader
- ["caMmH484"] = "github",
- },
- -- make sure to use the right URL for raw.github.com
- ["github"] = {
- -- grab the github bootstrap
- ["seriallos/computercraft/master/boot2.lua"] = "boot2",
- },
- }
- for service, list in pairs( http_runs ) do
- for id, program in pairs( list ) do
- print( "Downloading "..program.." from "..service )
- shell.run( service, "get", id, program )
- end
- end
- -- run the bootstrapper from github
- -- second level of bootstrap is so the files on pastebin can be pretty static.
- -- github is way easier to manage from the command line. i don't want to
- -- constantly be futzing with the pastebin site or API.
- -- git add .; git commit -m "blah"; git push # so much better!
- shell.run( "boot2" )
Advertisement
Add Comment
Please, Sign In to add comment