From 956c94f30a9207801f04583688c5c0b94aa38a84 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 27 Apr 2013 16:36:35 -0700 Subject: [PATCH] Teach the Makefile to only instruct the user to edit /etc/shells if it needs to be edited --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 5227865f6..c59ac0de3 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\'