From 5f8091d9b64778b62b4502dfb14d8ff80bdb728b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 9 Oct 2016 00:11:19 +0200 Subject: [PATCH] run_vim.sh: exec everything that's not in /vim-build/bin (#10) This fixes `nvim` being executed from `/usr/local/bin`, although it is installed/linked in `/vim-build/bin`. Ref: https://github.com/tweekmonster/vim-testbed/pull/9#issuecomment-252396530 --- scripts/run_vim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_vim.sh b/scripts/run_vim.sh index 1f3edea..2467cf2 100644 --- a/scripts/run_vim.sh +++ b/scripts/run_vim.sh @@ -6,7 +6,7 @@ shift if [ "$BIN" == "bash" ] || [ -z "$BIN" ]; then exec /bin/bash fi -if [ -n "$(/usr/bin/which "$BIN")" ]; then +if ! [ -x "/vim-build/bin/$BIN" ]; then exec "$BIN" "$@" fi