Margresse404

automateUpdateDing2222

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