Skip to content

Commit

Permalink
build(bump_deps.lua): run command -v in shell (#22030)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zeertzjq committed Jan 29, 2023
1 parent c9ac4e4 commit 3ac55fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump_deps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3ac55fe

Please sign in to comment.