diff options
author | Mathieu Comandon <strycore@gmail.com> | 2014-08-21 12:47:48 +0200 |
---|---|---|
committer | Mathieu Comandon <strycore@gmail.com> | 2014-08-21 12:47:48 +0200 |
commit | 91ba6d98875c70d0736fd3eecd0ee4aae52cdc74 (patch) | |
tree | a9ac9afaeaef5500dbc40cfbf9ff0bbbc181f85e /tools | |
parent | 1b7a3ea99a8b566510ab7881063148c43be6b98d (diff) | |
download | zsh-91ba6d98875c70d0736fd3eecd0ee4aae52cdc74.tar.gz zsh-91ba6d98875c70d0736fd3eecd0ee4aae52cdc74.tar.bz2 zsh-91ba6d98875c70d0736fd3eecd0ee4aae52cdc74.zip |
Don't try running chsh if user already runs zsh
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/install.sh b/tools/install.sh index fc7ad70cf..fc0a9fa64 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -32,8 +32,10 @@ sed -i -e "/export PATH=/ c\\ export PATH=\"$PATH\" " ~/.zshrc -echo "\033[0;34mTime to change your default shell to zsh!\033[0m" -chsh -s `which zsh` +if [ "$SHELL" != "$(which zsh)" ]; then + echo "\033[0;34mTime to change your default shell to zsh!\033[0m" + chsh -s `which zsh` +fi echo "\033[0;32m"' __ __ '"\033[0m" echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" |