From 4388b73077814a8ae45429bfa70f0b9c013c0547 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 13 Aug 2013 17:07:24 +0300 Subject: [PATCH] Don't mention chsh if it doesn't exist. This is case in Cygwin, which doesn't have /etc/shells ans chsh. --- Makefile.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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\'