mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00: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:
@ -54,7 +54,7 @@ local function run_die(cmd, err_msg)
|
||||
end
|
||||
|
||||
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')
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user