Skip to content

Commit 23acc02

Browse files
committed
add missing server path script
1 parent e879e40 commit 23acc02

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/server_path.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
local PathFinder = require("eca.path_finder")
2+
3+
local custom_path = _G.arg[1] or ""
4+
local path_finder = PathFinder:new()
5+
local path
6+
7+
local ok, err = pcall(function()
8+
path = path_finder:find(custom_path)
9+
end)
10+
11+
if not ok then
12+
io.stderr:write(tostring(err))
13+
os.exit(1)
14+
end
15+
16+
io.stdout:write(path)

0 commit comments

Comments
 (0)