576499a5ad6bc7b4b80238010ce8f1ab6dcde264
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
installer: fix for failed chsh quitting the installation
Diff
1diff --git a/tools/install.sh b/tools/install.sh
2index 3ed8584aabb1d31a0de6367169dd4ad48fcadca0..446e7f416994ae8acef8da61c49fae6e86baa41f 100755
3--- a/tools/install.sh
4+++ b/tools/install.sh
5@@ -95,7 +95,9 @@ setup_shell() {
6 # If this platform provides a "chsh" command (not Cygwin), do it, man!
7 if command_exists chsh; then
8 echo "${BLUE}Time to change your default shell to zsh!${NORMAL}"
9- chsh -s $(grep /zsh$ /etc/shells | tail -1)
10+ if ! chsh -s $(grep /zsh$ /etc/shells | tail -1); then
11+ echo "Error: chsh command unsuccessful. Change your default shell manually."
12+ fi
13 # Else, suggest the user do so manually.
14 else
15 cat <<-EOF