]> arthur.barton.de Git - backup-script.git/commitdiff
Fix "make check", redirect stderr to stdout to make grep work
authorAlexander Barton <alex@barton.de>
Mon, 13 Nov 2017 16:39:48 +0000 (17:39 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 13 Nov 2017 16:39:48 +0000 (17:39 +0100)
And use "grep -F" instead of "fgrep".

bin/Makefile

index 365da7607619bb636bd37bfb41dd4395d3fdf555..3162e4f3cbb1ba9a2de47bfef04d6e671c610827 100644 (file)
@@ -1,6 +1,6 @@
 #
 # backup-script system for cloning systems using rsync
-# Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
+# Copyright (c)2008-2017 Alexander Barton <alex@barton.de>
 #
 
 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