commit 3ac55fe0831b6af7277e6b26333ddb49ef423fcb
parent c9ac4e487706658852f0e6c2e71cf669dafba90b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 30 Jan 2023 07:15:38 +0800
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/bump_deps.lua b/scripts/bump_deps.lua
@@ -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