aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-30 07:15:38 +0800
committerGitHub <noreply@github.com>2023-01-30 07:15:38 +0800
commit3ac55fe0831b6af7277e6b26333ddb49ef423fcb (patch)
tree1768d143efff1b54ac24eb36a97a26d2bee0bb85
parentc9ac4e487706658852f0e6c2e71cf669dafba90b (diff)
downloadrneovim-3ac55fe0831b6af7277e6b26333ddb49ef423fcb.tar.gz
rneovim-3ac55fe0831b6af7277e6b26333ddb49ef423fcb.tar.bz2
rneovim-3ac55fe0831b6af7277e6b26333ddb49ef423fcb.zip
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.
-rwxr-xr-xscripts/bump_deps.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bump_deps.lua b/scripts/bump_deps.lua
index 1873c3cd0d..f980e800cf 100755
--- 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