Advertisement
minimite

kristcmd

Mar 7th, 2015
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local tArgs = {...}
  2. if shell.getRunningProgram() == "rom/programs/http/pastebin" then
  3.   grp = "kristcmd"
  4. else
  5.   fs.delete(shell.getRunningProgram())
  6.   grp = shell.getRunningProgram()
  7. end
  8. local open = fs.open(grp, "w")
  9. open.write(http.get("https://raw.githubusercontent.com/cpixelcube/kristcmd/master/main").readAll())
  10. open.close()
  11. if grp == shell.getRunningProgram() then
  12.   shell.run(grp, tArgs[1], tArgs[2], tArgs[3], tArgs[4], tArgs[5])
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement