Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(bump_deps.lua): run command -v in shell #22030

Merged
merged 1 commit into from
Jan 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
build(bump_deps.lua): run command -v in shell
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 28, 2023
commit d5a3df45d32fbdef2adb34a58d460c5c72b2d5fc
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