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.
This commit is contained in:
Tony Xue 2015-10-11 14:50:57 -07:00
commit f0d4622452

View file

@ -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