Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Yeeet OS Uninstall Script
- local function confirmUninstall()
- term.clear()
- term.setCursorPos(1, 1)
- print("===== Yeeet OS Uninstall =====")
- print("Are you sure you want to uninstall Yeeet OS?")
- print("This will delete all OS files and cannot be undone.")
- write("Type 'yes' to confirm: ")
- local confirmation = read()
- return confirmation == "yes"
- end
- local function uninstallOS()
- local osFiles = { "startup.lua", "draw.lua", "programming.lua", "uninstall.lua", "theme.txt" }
- for _, file in ipairs(osFiles) do
- if fs.exists(file) then
- fs.delete(file)
- end
- end
- term.clear()
- term.setCursorPos(1, 1)
- print("Yeeet OS has been successfully uninstalled.")
- print("The computer is now blank. Goodbye!")
- sleep(3)
- os.shutdown()
- end
- if confirmUninstall() then
- uninstallOS()
- else
- print("Uninstall canceled. Returning to home screen...")
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement