Stary2001

Untitled

Dec 30th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local repopath = "https://bitbucket.org/stary2001/staryos"
  2.  
  3. function get(name,fsname)
  4. local resp = http.get(repopath .. "/raw/master/" .. name)
  5. local data = resp.readAll()
  6. resp.close()
  7.  
  8. local f = fs.open(fsname or name,"w")
  9. if f then
  10. f.write(data)
  11. f.close()
  12. end
  13. end
  14.  
  15.  
  16. get("grab")
  17. get("install")
  18. get("lib/json","json")
  19. shell.run("install")
  20. fs.delete("grab")
  21. fs.delete("install")
  22. fs.delete("json")
Advertisement
Add Comment
Please, Sign In to add comment