소스 검색

Replace which with command -v (#1032)

Luc Sinet 4 년 전
부모
커밋
1399d2670a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      utils/installer/install.sh

+ 2 - 2
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