mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 07:56:05 +02:00
installer: fix for failed chsh quitting the installation
This commit is contained in:
1 parent
a7bd1f99ae
commit
576499a5ad
1 file changed
+3
-1
+3
-1
@@ -95,7 +95,9 @@ setup_shell() {
|
|||||||
# If this platform provides a "chsh" command (not Cygwin), do it, man!
|
# If this platform provides a "chsh" command (not Cygwin), do it, man!
|
||||||
if command_exists chsh; then
|
if command_exists chsh; then
|
||||||
echo "${BLUE}Time to change your default shell to zsh!${NORMAL}"
|
echo "${BLUE}Time to change your default shell to zsh!${NORMAL}"
|
||||||
chsh -s $(grep /zsh$ /etc/shells | tail -1)
|
if ! chsh -s $(grep /zsh$ /etc/shells | tail -1); then
|
||||||
|
echo "Error: chsh command unsuccessful. Change your default shell manually."
|
||||||
|
fi
|
||||||
# Else, suggest the user do so manually.
|
# Else, suggest the user do so manually.
|
||||||
else
|
else
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
|
|||||||
Reference in new issue
Block a user