Advertisement
atlasim

Kernel : Updater

Jun 29th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. term.setTextColor(colors.yellow)
  2. print("An update is available\ndo you want to install the update?\n(Y/N)\n>")
  3. term.setTextColor(colors.white)
  4. term.setCursorPos(3,8)
  5. yn=io.read()
  6. if yn == "y" then
  7. print("installing update...")
  8. shell.run("pastebin run Ds0sZNNC")
  9. print("Done !")
  10. elseif yn == "n" then
  11. print("canceled reboot to get this prompt again")
  12. sleep(3)
  13. end
  14. shell.run(".CC/kernel")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement