aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-27 16:36:35 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-27 16:36:35 -0700
commit956c94f30a9207801f04583688c5c0b94aa38a84 (patch)
tree709207406fe1e7a8d053753633e5fdf5aba0fabf /Makefile.in
parent3e69e5b0820102bfc3c1422ba88ca51a8c8f1b9a (diff)
Teach the Makefile to only instruct the user to edit /etc/shells if it needs to be edited
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 5227865f..c59ac0de 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -617,7 +617,7 @@ install-force: all install-translations
@echo To run fish, type \'fish\' in your terminal.
@echo
@echo To use fish as your login shell:
- @echo \* add the line \'$(DESTDIR)$(bindir)/fish\' to the file \'/etc/shells\'.
+ @grep -q -- "$(DESTDIR)$(bindir)/fish" /etc/shells || echo \* add the line \'$(DESTDIR)$(bindir)/fish\' to the file \'/etc/shells\'.
@echo \* use the command \'chsh -s $(DESTDIR)$(bindir)/fish\'.
@echo
@echo To set your colors, run \'fish_config\'