Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local tArgs = { ... }
  2.  
  3. -- Config
  4. local github_user = "tgiv014"
  5. local github_repo = "cc"
  6. local github_branch = "master"
  7.  
  8. --
  9. local filelist = fs.open("files.dl", "r")
  10.  
  11. while true do
  12. filename = filelist.readLine()
  13. if filename ~= nil then
  14. local github_url = "https://gitlab.mntn.dev/"..github_user.."/"..github_repo.."/raw/"..github_branch.."/"..filename
  15.  
  16. local request = http.get( github_url )
  17. local response = request.readAll()
  18. request.close()
  19.  
  20. local file = fs.open( filename, "w" )
  21. file.write( response )
  22. file.close()
  23. end
  24. end
  25.  
  26. filelist.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement