Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- -- Config
- local github_user = "tgiv014"
- local github_repo = "cc"
- local github_branch = "master"
- --
- local filelist = fs.open("files.dl", "r")
- while true do
- filename = filelist.readLine()
- if filename ~= nil
- local github_url = "https://gitlab.mntn.dev/"..github_user.."/"..github_repo.."/raw/"..github_branch.."/"..filename
- local request = http.get( github_url )
- local response = request.readAll()
- request.close()
- local file = fs.open( filename, "w" )
- file.write( response )
- file.close()
- end
- end
- filelist.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement