浏览代码

[installer] use `command -v` to check for git

Quick fix to the script not finding git due to hash.
Solves #6697.
Marc Cornellà 7 年之前
父节点
当前提交
4fec0a46e7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/install.sh

+ 1 - 1
tools/install.sh

@@ -49,7 +49,7 @@ main() {
   umask g-w,o-w
 
   printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
-  hash git >/dev/null 2>&1 || {
+  command -v git >/dev/null 2>&1 || {
     echo "Error: git is not installed"
     exit 1
   }