Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. -- This script simply updates the control script to its current verison by downloading it from gist
  2.  
  3. local function downloadFiles(url, path)
  4. for i = 1, 3 do
  5. local response = http.get(url)
  6. if response then
  7. local data = response.readAll()
  8. if path then
  9. local f = io.open(path, "w")
  10. f:write(data)
  11. f:close()
  12. end
  13. return true
  14. end
  15. end
  16. end
  17. gist_raw_url = "https://gist.githubusercontent.com/Paspartout/5a1eaaf1fa3423a67bf4/raw/brctl.lua"
  18. downloadFiles(gist_raw_url, "/brctl")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement