krakaen

[Krakaen] Startup Reactor

Feb 13th, 2016 (edited)
105,959
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local args = { ... }
  2. local programName = "reactor"
  3. local programCode = "NY6MU58s"
  4. local index = "ReactorIndex" -- replace this with the name of the file you want to create (needs to be unique)
  5.  
  6. if (fs.exists(programName) == false or args[1] == "update") then
  7.     shell.run("rm " .. programName)
  8.     shell.run("pastebin get " .. programCode .. " " .. programName)
  9. end
  10. print("Starting Reactor Program")
  11. shell.run(programName .. " " .. index)
Add Comment
Please, Sign In to add comment