summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Sinet <[email protected]>2021-07-19 18:33:31 +0200
committerGitHub <[email protected]>2021-07-19 21:03:31 +0430
commit1399d2670aced6f39033c64b26e91887dc87f9a5 (patch)
tree911cfc0855f697664a67e3f7a31e8a7ffd1028c9
parent0b7668d037b03cfe0ebe84c8a0d87e29c7617af3 (diff)
Replace which with command -v (#1032)
-rwxr-xr-xutils/installer/install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index 96570840..c6b57a66 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -187,10 +187,10 @@ esac
[ -d "$HOME/.config/nvim" ] && moveoldnvim
# install pip
-(which pip3 >/dev/null && echo "pip installed, moving on...") || asktoinstallpip
+(command -v pip3 >/dev/null && echo "pip installed, moving on...") || asktoinstallpip
# install node and neovim support
-(which node >/dev/null && echo "node installed, moving on...") || asktoinstallnode
+(command -v node >/dev/null && echo "node installed, moving on...") || asktoinstallnode
# install pynvim
(pip3 list | grep pynvim >/dev/null && echo "pynvim installed, moving on...") || installpynvim