Commit c4981bae authored by Marc Cornellà's avatar Marc Cornellà
Browse files

installer: check if zsh in path instead of /etc/shells



Fixes #4955

Closes #5931
Closes #6398
Co-authored-by: default avatarVoid <vst4rbot@gmail.com>
Co-authored-by: default avatarKaleb Elwert <belak@coded.io>
parent cafa6574
......@@ -24,12 +24,10 @@ main() {
# which may fail on systems lacking tput or terminfo
set -e
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
if command -v zsh >/dev/null 2>&1; then
printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
exit
fi
unset CHECK_ZSH_INSTALLED
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment