4fec0a46e73479cf3b9e7f953750af5ed5df87ac

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Quick fix to the script not finding git due to hash.
Solves #6697.

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index 187c828f5e4996b40a20a6ed9c60b016fcce9302..840a0d7d88ab9d2db45955843f22fbd7d5ddb080 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -49,7 +49,7 @@ main() {
 6   umask g-w,o-w
 7 
 8   printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
 9-  hash git >/dev/null 2>&1 || {
10+  command -v git >/dev/null 2>&1 || {
11     echo "Error: git is not installed"
12     exit 1
13   }