Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- the source code for the program can be found at the link below
- -- https://github.com/bench-cc/bench
- assert(http, "HTTP API is required.")
- assert(_HOST or _CC_VERSION, "CC 1.74+ is required.")
- local f, e
- if fs.exists(".bench/bench.lua") then
- --f, e = loadfile(".bench/bench.lua")
- local _f = fs.open(".bench/bench.lua", "r")
- f, e = load(_f.readAll(), "bench.lua", nil, setmetatable({shell = shell}, {__index = _G}))
- _f.close()
- else
- print("Connecting...")
- local h = assert(http.get("https://raw.githubusercontent.com/bench-cc/bench/master/src/bench.lua"))
- f, e = load(h.readAll(), "bench.lua", nil, setmetatable({shell = shell}, {__index = _G}))
- h.close()
- end
- assert(f, e)
- return f(...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement