From f0d4622452f8f3fe840489aedf564df2b7d34794 Mon Sep 17 00:00:00 2001 From: Tony Xue Date: Sun, 11 Oct 2015 14:50:57 -0700 Subject: [PATCH] Also check for non-system-wide ZSH installation. Some users don't have root access on machines and the machines do not have zsh installed. They can still have zsh installed in their own $HOME. The install script should also check for that otherwise will report ZSH Not Installed. --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 5633320a8..d0a0d114b 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -21,7 +21,7 @@ else BOLD="" NORMAL="" fi -CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l) +CHECK_ZSH_INSTALLED=$((grep /zsh$ /etc/shells || whereis zsh) | wc -l) if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n" exit