update chsh command call

/etc/shells may not point to /usr/bin/zsh (which is the result when using 'which zsh') 
using chsh -l and choosing zsh from there will guarantee chsh to work without failure.

Ref #3779
This commit is contained in:
Jelly Robot 2015-04-15 22:25:28 +02:00
commit 9137d543b5

View file

@ -34,7 +34,7 @@ export PATH=\"$PATH\"
if [ "$SHELL" != "$(which zsh)" ]; then
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
chsh -s `which zsh`
chsh -s $(chsh -l | grep "zsh" -m 1)
fi
echo "\033[0;32m"' __ __ '"\033[0m"