Advertisement
IronicPickle

install.lua

Mar 2nd, 2020
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. local files = {
  2.     {id = "EjuiNkDQ", dir = "/sync.lua"},
  3.     {id = "bUpvnJCL", dir = "/syncMaster.lua"},
  4.     {id = "sdjTmtPv", dir = "/lib/monitorUtils.lua"},
  5.     {id = "DY1nFZ8D", dir = "/lib/render.lua"},
  6.     {id = "ZNCRzhZi", dir = "/lib/setupUtils.lua"},
  7.     {id = "dQLciwwm", dir = "/lib/stateHandler.lua"},
  8.     {id = "YfCJ9TpW", dir = "/programs/door.lua"},
  9.     {id = "UZWRZVq7", dir = "/programs/elevator.lua"},
  10.     {id = "2XmmTPqD", dir = "/programs/enderControlMaster.lua"},
  11.     {id = "BRmXHvdD", dir = "/programs/enderControlSlave.lua"},
  12.     {id = "Dfb5xT8X", dir = "/programs/powerControlSlave.lua"},
  13.     {id = "MFJ5GwAq", dir = "/programs/toggle.lua"}
  14. }
  15.  
  16. function install()
  17.  
  18.     print("# Found " .. #files .. " files")
  19.     print("# Press any key to install\n")
  20.     local event, key = os.pullEvent("key")
  21.    
  22.     print("# Installing...\n")
  23.        
  24.     for i, file in pairs(files) do
  25.         print("- " .. file.id)
  26.         shell.run("pastebin get " .. file.id .. " /lua" .. file.dir)
  27.     end
  28.  
  29. end
  30.  
  31. install()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement