summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/install.sh b/tools/install.sh
index 659cd9447..7eea2e748 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -97,7 +97,7 @@ 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}"
- if ! chsh -s $(grep /zsh$ /etc/shells | tail -1); then
+ if ! chsh -s $(grep '^/.*/zsh$' /etc/shells | tail -1); then
error "chsh command unsuccessful. Change your default shell manually."
fi
# Else, suggest the user do so manually.