Eric_W

Installer

Aug 27th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. -- Easy Installer for computercraft-github by Eric Wieser
  2. -- https://github.com/eric-wieser/computercraft-github
  3. local tree = select(1,...) or 'master'
  4. local url = ('https://raw.githubusercontent.com/eric-wieser/computercraft-github/%s'):format(tree)
  5. local response = assert(http.get(url..'/bootstrap.lua'), "Could not connect to github").readAll()
  6. setfenv(loadstring(response, 'bootstrap.lua'), getfenv())(url)
Advertisement
Add Comment
Please, Sign In to add comment