mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Recognize multiple paths for zsh.
This commit is contained in:
@@ -30,7 +30,7 @@ function prerequisites {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if which zsh > /dev/null ; then
|
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
|
echo 'Enter password to change shell.' 1>&2
|
||||||
chsh -s `which zsh`
|
chsh -s `which zsh`
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user