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

Quick fix to the script not finding git due to hash.
Solves #6697.
master
Marc Cornellà 8 years ago committed by GitHub
parent 86a0b86562
commit 4fec0a46e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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
}

Loading…
Cancel
Save