bench webload

May 16th, 2016
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- the source code for the program can be found at the link below
  2. -- https://github.com/bench-cc/bench
  4. assert(http, "HTTP API is required.")
  5. assert(_HOST or _CC_VERSION, "CC 1.74+ is required.")
  7. local f, e
  8. if fs.exists(".bench/bench.lua") then
  9.     --f, e = loadfile(".bench/bench.lua")
  10.     local _f = fs.open(".bench/bench.lua", "r")
  11.     f, e = load(_f.readAll(), "bench.lua", nil, setmetatable({shell = shell}, {__index = _G}))
  12.     _f.close()
  13. else
  14.     print("Connecting...")
  15.     local h = assert(http.get("https://raw.githubusercontent.com/bench-cc/bench/master/src/bench.lua"))
  16.     f, e = load(h.readAll(), "bench.lua", nil, setmetatable({shell = shell}, {__index = _G}))
  17.     h.close()
  18. end
  19. assert(f, e)
  20. return f(...)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.