1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-10 21:37:43 +00:00
This commit is contained in:
kepler155c@gmail.com
2017-10-08 17:45:01 -04:00
parent 98ec840db1
commit a625b52bad
46 changed files with 334 additions and 319 deletions

View File

@@ -33,7 +33,7 @@ local BASE = 'https://raw.githubusercontent.com/' .. GIT_REPO
local function makeEnv()
local env = setmetatable({ }, { __index = _G })
for k,v in pairs(getfenv(1)) do
for k,v in pairs(_ENV) do
env[k] = v
end
return env
@@ -53,7 +53,7 @@ local function runUrl(file, ...)
local h = http.get(url)
if h then
local fn, m = load(h.readAll(), url, nil, makeEnv())
local fn = load(h.readAll(), url, nil, makeEnv())
h.close()
if fn then
return fn(...)