Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("libraries.asshat")
- function removeProgramas()
- print("Removing native programs...")
- if not shell.run("rm", "./*.lua") then
- printCor("Failed to remove files.", colors.red)
- os.exit()
- end
- end
- function removeBibliotecas()
- print("Removing libraries...")
- if not shell.run("rm", "./libraries") then
- printCor("Failed to remove libraries.", colors.red)
- os.exit()
- end
- end
- function copiaArquivos()
- print("Copying files from disk...")
- if not shell.run("cp", "./disk/*", "./") then
- printCor("Failed to copy files.", colors.red)
- os.exit()
- end
- end
- if fs.exists("./disk/") then
- removeProgramas()
- removeBibliotecas()
- copiaArquivos()
- printCor("Success!", colors.green)
- else
- printCor("Disk not found.", colors.red)
- end
Add Comment
Please, Sign In to add comment