Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
576499a5
Commit
576499a5
authored
May 21, 2019
by
Marc Cornellà
Browse files
installer: fix for failed chsh quitting the installation
parent
a7bd1f99
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/install.sh
View file @
576499a5
...
...
@@ -95,7 +95,9 @@ setup_shell() {
# If this platform provides a "chsh" command (not Cygwin), do it, man!
if
command_exists chsh
;
then
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
cat
<<-
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment