diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-27 16:36:35 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-27 16:36:35 -0700 |
commit | 956c94f30a9207801f04583688c5c0b94aa38a84 (patch) | |
tree | 709207406fe1e7a8d053753633e5fdf5aba0fabf /Makefile.in | |
parent | 3e69e5b0820102bfc3c1422ba88ca51a8c8f1b9a (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.in | 2 |
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\' |