mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
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:
parent
57c2ac1e60
commit
f0d4622452
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue