We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e879e40 commit 23acc02Copy full SHA for 23acc02
scripts/server_path.lua
@@ -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