Advertisement
guitarplayer616

(lyquid)AutoBuilderSetup

Nov 24th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. projectLinks = {
  2.   ["setup"] = "http://pastebin.com/raw/k7WV7P74",
  3.   ["location"] = "https://raw.githubusercontent.com/lyqyd/location/master/location",
  4.   ["projects/turbine"] = "https://raw.githubusercontent.com/lyqyd/cc-generalized-setup/master/projects/demosthenex-turbine",
  5.   ["projects/dome13"] = "https://raw.githubusercontent.com/lyqyd/cc-generalized-setup/master/projects/dome13",
  6.   ["projects/gps"] = "https://raw.githubusercontent.com/lyqyd/cc-generalized-setup/master/projects/gpssatellite",
  7.   ["projects/house"] = "https://raw.githubusercontent.com/lyqyd/cc-generalized-setup/master/projects/lyqyd-house",
  8.   ["projects/treefarm"] = "https://raw.githubusercontent.com/lyqyd/cc-generalized-setup/master/projects/treefarm",
  9. }
  10.  
  11. if not fs.exists("projects") then
  12.     fs.makeDir("projects")
  13. end
  14.  
  15. for i,v in pairs(projectLinks) do
  16.   local file = http.get(v)
  17.   local h = fs.open(i,"w")
  18.   h.write(file.readAll())
  19.   h.close()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement