mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
unittests: Do not use which, add data to paths.lua.in instead
This commit is contained in:
@@ -216,8 +216,11 @@ local function which(exe)
|
||||
local pipe = io.popen('which ' .. exe, 'r')
|
||||
local ret = pipe:read('*a')
|
||||
pipe:close()
|
||||
assert(ret:sub(-1) == '\n')
|
||||
return ret:sub(1, -2)
|
||||
if ret == '' then
|
||||
return nil
|
||||
else
|
||||
return ret:sub(1, -2)
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user