Teach the Makefile to only instruct the user to edit /etc/shells if it needs to be edited

This commit is contained in:
ridiculousfish 2013-04-27 16:36:35 -07:00
parent 3e69e5b082
commit 956c94f30a

View File

@ -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\'