Advertisement
DaikiKaminari

bloodInstaller

Apr 9th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -- delete files
  2. local function removeFiles(files)
  3.     for _,f in ipairs(files) do
  4.         if fs.exists(f) then
  5.             shell.run("rm " .. f)
  6.         end
  7.     end
  8. end
  9.  
  10.  
  11. if not fs.exists("github") then
  12.     shell.run("pastebin get wPtGKMam github")
  13. end
  14.  
  15. removeFiles({"lib/item", "lib/objectJSON", "config", "recipesManager", "startup"})
  16. shell.run("github DaikiKaminari bloodmagic")
  17.  
  18. shell.run("mv downloads/bloodmagic/lib/* lib/")
  19. shell.run("mv downloads/bloodmagic/startup .")
  20. shell.run("mv downloads/bloodmagic/recipesManager .")
  21. shell.run("mv downloads/bloodmagic/config .")
  22.  
  23. shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement