SHOW:
|
|
- or go back to the newest paste.
| 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) |