Advertisement
Lyqyd

grab-packman

Mar 5th, 2015
5,622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local response = http and http.get("https://raw.githubusercontent.com/lyqyd/cc-packman/master/packman")
  2. if response then
  3.     if not fs.exists("/usr/bin") then fs.makeDir("/usr/bin") end
  4.     local handle = io.open("/usr/bin/packman", "w")
  5.     if handle then
  6.         handle:write(response.readAll())
  7.         handle:close()
  8.     else
  9.         error("Could not write /usr/bin/packman")
  10.     end
  11.     response.close()
  12. else
  13.     error("Could not fetch packman")
  14. end
  15. shell.run("/usr/bin/packman bootstrap")
  16. shell.run("/usr/bin/packman force install easy-shell")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement