SHOW:
|
|
- or go back to the newest paste.
| 1 | --function installProgram() by MrHG-- | |
| 2 | ||
| 3 | local args={...}
| |
| 4 | ||
| 5 | code=args[1] | |
| 6 | name=args[2] | |
| 7 | ||
| 8 | function installProgram(name, code) | |
| 9 | if fs.exists(name) then | |
| 10 | fs.delete(name) | |
| 11 | end | |
| 12 | shell.run("pastebin get "..code.." "..name)
| |
| 13 | end | |
| 14 | ||
| 15 | - | installProgram(name,code) |
| 15 | + | installProgram(name,code) |
| 16 | os.reboot() |