RavenOS

installer

Sep 7th, 2019
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. term = require("term")
  2.  
  3. function installer()
  4.     print("ok")
  5. end
  6.  
  7. function install(url, filename)
  8.     os.execute("wget -q "..url.." "..filename)
  9. end
  10.  
  11. term.clear()
  12. print("Are you sure you want to install RavenOS? (Y/n)")
  13. io.write("[> ")
  14. input = io.read()
  15.  
  16. while true do
  17.     if input == "y" then
  18.         installer()
  19.         break
  20.     elseif input == "Y" then
  21.         installer()
  22.         break
  23.     elseif input == "n" then
  24.         print("Install cancelled!")
  25.         break
  26.     elseif input == "N" then
  27.         print("Install cancelled!")
  28.         break
  29.     else
  30.         print("Unknown input! Please try again!")
  31.         break
  32.     end
  33. end
Add Comment
Please, Sign In to add comment