8f0ff4bb63a8fd26741128a851c224af323eb772

Author
ningwei1993 <ningwei1993@icloud.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

fix bug for check zsh (#6798)

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index 1a0a8e6db468b0683599a92fa3a511cb5221e4c9..ad47df7858b2574e07137f4db5375e876a60dc02 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -24,7 +24,7 @@ main() {
 6   # which may fail on systems lacking tput or terminfo
 7   set -e
 8 
 9-  if command -v zsh >/dev/null 2>&1; then
10+  if ! command -v zsh >/dev/null 2>&1; then
11     printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
12     exit
13   fi