Advertisement
SergOmarov

The A Environment Installer

Jan 5th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. --[[
  2. Author: SergOmarov
  3. Licenze: Licenze: Creative Commons «Attribution-NonCommercial-NoDerivatives» («Атрибуция — Некоммерческое использование — Без производных произведений») 4.0 Всемирная.
  4.  
  5. ]]
  6. require("shell").execute("pastebin get cbED8cbK lib/translator.lua")
  7. require("shell").execute("pastebin get vijL56CZ a.lua")
  8. local f=require("filesystem").open("boot/02_os.lua","a")
  9. local a=[==[
  10. os.execute = function(command)
  11. if not command then
  12. return type(shell) == "table"
  13. end
  14. local pos=command:find(" ")
  15. pos=pos or 0
  16. if(command:sub(0,pos-1):sub(-3,-1)==".aa") or (command:sub(-3,-1)==".aa" and pos==nil)then
  17. command="a "..command
  18. end
  19. return shell.execute(command)
  20. end]==]
  21. f.fs.write(f.handle,a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement