diff options
author | Konrad Borowski <glitchmr@myopera.com> | 2013-08-13 17:07:24 +0300 |
---|---|---|
committer | Konrad Borowski <glitchmr@myopera.com> | 2013-08-13 17:07:24 +0300 |
commit | 4388b73077814a8ae45429bfa70f0b9c013c0547 (patch) | |
tree | b5361f9dcca90065ca27c5e6d680fc353b244f20 /Makefile.in | |
parent | d7c68559188410f61a2f6161527fbf75c9e5dccb (diff) |
Don't mention chsh if it doesn't exist.
This is case in Cygwin, which doesn't have /etc/shells ans chsh.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 4d24e588..745628e6 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\' |