From 589184ccc3573b6d69f41b638a97e30a980afd6c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 14 Sep 2017 13:10:45 -0400 Subject: [PATCH] /dev/null stderr when generating completions avoid usage display when too old optparse-applicative --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index be76bae22d..aceb65caec 100644 --- a/Makefile +++ b/Makefile @@ -67,10 +67,10 @@ install-misc: build Build/InstallDesktopFile install -d $(DESTDIR)$(PREFIX)/$(SHAREDIR)/bash-completion/completions install -m 0644 bash-completion.bash $(DESTDIR)$(PREFIX)/$(SHAREDIR)/bash-completion/completions/git-annex install -d $(DESTDIR)$(PREFIX)/$(SHAREDIR)/zsh/vendor-completions - @./git-annex --zsh-completion-script git-annex > $(DESTDIR)$(PREFIX)/$(SHAREDIR)/zsh/vendor-completions/_git-annex || \ + @./git-annex --zsh-completion-script git-annex 2>/dev/null > $(DESTDIR)$(PREFIX)/$(SHAREDIR)/zsh/vendor-completions/_git-annex || \ echo "** zsh completions not installed; built with too old version of optparse-applicative" install -d $(DESTDIR)$(PREFIX)/$(SHAREDIR)/fish/completions - @./git-annex --fish-completion-script git-annex > $(DESTDIR)$(PREFIX)/$(SHAREDIR)/fish/completions/git-annex.fish || \ + @./git-annex --fish-completion-script git-annex 2>/dev/null > $(DESTDIR)$(PREFIX)/$(SHAREDIR)/fish/completions/git-annex.fish || \ echo "** fish completions not installed; built with too old version of optparse-applicative" install: install-bins install-docs install-misc