From fa4ad1806421ef0ccdf602baaf5ca3f82efb621e Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 13 Nov 2017 17:39:48 +0100 Subject: [PATCH] Fix "make check", redirect stderr to stdout to make grep work And use "grep -F" instead of "fgrep". --- bin/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.2