From 1399d2670aced6f39033c64b26e91887dc87f9a5 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Mon, 19 Jul 2021 18:33:31 +0200 Subject: Replace which with command -v (#1032) --- utils/installer/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/installer') 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 -- cgit v1.2.3