mmm1245

aaa

Jun 15th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. shell.run("wget https://pastebin.com/raw/taHSMHWb /temp/software_list")
  2.  
  3. local programs_n = {}
  4. local programs_u = {}
  5.  
  6. local file = fs.open("/temp/software_list","r")
  7.  
  8. repeat
  9.     programs_n[#programs_n] = file.readLine()
  10.     programs_u[#programs_u] = file.readLine()
  11. until programs_n[#programs_n] ~= nil
  12.  
  13. file.close()
  14. shell.run("rm /temp/software_list")
  15.  
  16. while true do
  17.     for _, name in ipairs(programs_n) do
  18.         write(name .. "\n")
  19.     end
  20.    
  21.     local event, button, x, y = os.pullEvent( "mouse_click" )
  22.    
  23.     shell.run("packman install ".. programs_n[y] .. " " .. programs_u[y])
  24.     shell.run("clear")
  25. end
Add Comment
Please, Sign In to add comment