From: Alexander Barton Date: Mon, 13 Nov 2017 16:39:48 +0000 (+0100) Subject: Fix "make check", redirect stderr to stdout to make grep work X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=fa4ad1806421ef0ccdf602baaf5ca3f82efb621e;p=backup-script.git Fix "make check", redirect stderr to stdout to make grep work And use "grep -F" instead of "fgrep". --- diff --git a/bin/Makefile b/bin/Makefile index 365da76..3162e4f 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,6 +1,6 @@ # # backup-script system for cloning systems using rsync -# Copyright (c)2008-2015 Alexander Barton +# Copyright (c)2008-2017 Alexander Barton # include ../lib/Makefile.ax @@ -18,7 +18,7 @@ install-local: $(DESTDIR)$(PREFIX)/sbin/backup-audit check-local: - ./backup-script --help | fgrep 'Usage: ' >/dev/null - ./backup-script --help | fgrep 'Configuration file is "' >/dev/null - ./backup-status --help | fgrep 'Usage: ' >/dev/null - ./backup-audit --help | fgrep 'Usage: ' >/dev/null + ./backup-script --help 2>&1 | grep -F 'Usage: ' >/dev/null + ./backup-script --help 2>&1 | grep -F 'Configuration file is "' >/dev/null + ./backup-status --help | grep -F 'Usage: ' >/dev/null + ./backup-audit --help | grep -F 'Usage: ' >/dev/null