diff options
| author | Marc Cornellà <marc.cornella@live.com> | 2018-05-05 21:27:48 +0200 | 
|---|---|---|
| committer | Marc Cornellà <marc.cornella@live.com> | 2018-05-05 22:03:57 +0200 | 
| commit | c4981bae0a91ce6d4b0717558342584cc6491199 (patch) | |
| tree | 7a18ec64b3024fa113e7ba6808616091902c2bfa /tools | |
| parent | cafa657469bda1baf145c090e168057ae632464d (diff) | |
| download | zsh-c4981bae0a91ce6d4b0717558342584cc6491199.tar.gz zsh-c4981bae0a91ce6d4b0717558342584cc6491199.tar.bz2 zsh-c4981bae0a91ce6d4b0717558342584cc6491199.zip | |
installer: check if zsh in path instead of /etc/shells
Fixes #4955
Closes #5931
Closes #6398
Co-authored-by: Void <vst4rbot@gmail.com>
Co-authored-by: Kaleb Elwert <belak@coded.io>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/install.sh | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/tools/install.sh b/tools/install.sh index 840a0d7d8..1a0a8e6db 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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 | 
