Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term = require("term")
- function installer()
- print("ok")
- end
- function install(url, filename)
- os.execute("wget -q "..url.." "..filename)
- end
- term.clear()
- print("Are you sure you want to install RavenOS? (Y/n)")
- io.write("[> ")
- input = io.read()
- while true do
- if input == "y" then
- installer()
- break
- elseif input == "Y" then
- installer()
- break
- elseif input == "n" then
- print("Install cancelled!")
- break
- elseif input == "N" then
- print("Install cancelled!")
- break
- else
- print("Unknown input! Please try again!")
- break
- end
- end
Add Comment
Please, Sign In to add comment