Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local repopath = "https://bitbucket.org/stary2001/staryos"
- function get(name,fsname)
- local resp = http.get(repopath .. "/raw/master/" .. name)
- local data = resp.readAll()
- resp.close()
- local f = fs.open(fsname or name,"w")
- if f then
- f.write(data)
- f.close()
- end
- end
- get("grab")
- get("install")
- get("lib/json","json")
- shell.run("install")
- fs.delete("grab")
- fs.delete("install")
- fs.delete("json")
Advertisement
Add Comment
Please, Sign In to add comment