Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("bibliotecas.atari")
- function removeProgramas()
- print("Removendo programas nativos...")
- if not shell.run("rm", "./*.lua") then
- printCor("Falha em remover programas.", colors.red)
- os.exit()
- end
- end
- function removeBibliotecas()
- print("Removendo bibliotecas...")
- if not shell.run("rm", "./bibliotecas") then
- printCor("Falha em remover bibliotecas.", colors.red)
- os.exit()
- end
- end
- function copiaArquivos()
- print("Copiando arquivos do disco...")
- if not shell.run("cp", "./disk/*", "./") then
- printCor("Falha em copiar arquivos.", colors.red)
- os.exit()
- end
- end
- if fs.exists("./disk/") then
- removeProgramas()
- removeBibliotecas()
- copiaArquivos()
- printCor("Sucesso!", colors.green)
- else
- printCor("Disco não encontrado.", colors.red)
- end
Advertisement
Add Comment
Please, Sign In to add comment