mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
build(bump_deps.lua): run command -v in shell (#22030)
When I run ./scripts/bump_deps.lua I get an error: Vim:E475: Invalid value for argument cmd: 'command' is not executable Running command -v in shell fixes this.
This commit is contained in:
parent
c9ac4e4877
commit
3ac55fe083
@ -54,7 +54,7 @@ local function run_die(cmd, err_msg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function require_executable(cmd)
|
local function require_executable(cmd)
|
||||||
local cmd_path = run_die({ 'command', '-v', cmd }, cmd .. ' not found!')
|
local cmd_path = run_die({ 'sh', '-c', 'command -v ' .. cmd }, cmd .. ' not found!')
|
||||||
run_die({ 'test', '-x', cmd_path }, cmd .. ' is not executable')
|
run_die({ 'test', '-x', cmd_path }, cmd .. ' is not executable')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user