17 lines
345 B
Lua
17 lines
345 B
Lua
|
local h, err = http.get("https://git.alexdevs.me/Legacy-CC/sPhone/raw/branch/master/src/installer.lua")
|
||
|
if not h then
|
||
|
error(err, 0)
|
||
|
end
|
||
|
|
||
|
local content = h.readAll()
|
||
|
h.close()
|
||
|
|
||
|
local func, err = load(content, "@installer.lua", "t", _ENV)
|
||
|
if not func then
|
||
|
error(err, 0)
|
||
|
end
|
||
|
|
||
|
local ok, err = pcall(func)
|
||
|
if not ok then
|
||
|
error(err, 0)
|
||
|
end
|