CultistaDeCrocs

updateFloppy

Sep 15th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. require("libraries.asshat")
  2.  
  3. function removeArquivos()
  4.     print("Removing all files from disk...")
  5.  
  6.     if not shell.run("rm", "./disk/*") then
  7.         printCor("Failed to remove files.", colors.red)
  8.         os.exit()
  9.     end
  10. end
  11.  
  12. function copiaProgramas()
  13.     print("Copying native programs...")
  14.  
  15.     if not shell.run("cp", "./*.lua", "./disk") then
  16.         printCor("Failed to copy programs.", colors.red)
  17.         os.exit()
  18.     end
  19. end
  20.  
  21. function copiaBibliotecas()
  22.     print("Copying libraries...")
  23.  
  24.     if not shell.run("cp", "./libraries", "./disk") then
  25.         printCor("Failed to copy libraries.", colors.red)
  26.         os.exit()
  27.     end
  28. end
  29.  
  30. removeArquivos()
  31. copiaProgramas()
  32. copiaBibliotecas()
  33. printCor("Success!", colors.green)
Add Comment
Please, Sign In to add comment