This commit is contained in:
David Tomaschik
2015-10-08 16:27:48 -07:00
2 changed files with 9 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ function prerequisites {
return
fi
if which zsh > /dev/null ; then
if [[ `getent passwd $USER | cut -d: -f7` != `which zsh` ]] ; then
if [[ `getent passwd $USER | cut -d: -f7` != */zsh ]] ; then
echo 'Enter password to change shell.' 1>&2
chsh -s `which zsh`
fi