diff --git a/Makefile.in b/Makefile.in index 4d24e588a..745628e6c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -640,9 +640,11 @@ install-force: all install-translations @echo fish is now installed on your system. @echo To run fish, type \'fish\' in your terminal. @echo - @echo To use fish as your login shell: - @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\'. + if type chsh &> /dev/null; then \ + echo To use fish as your login shell:; \ + 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\'.; \ + fi; @echo @echo To set your colors, run \'fish_config\' @echo To scan your man pages for completions, run \'fish_update_completions\'