daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top