Makefile: hide error message when no arch-specific tests exist
authorAlexander Barton <alex@barton.de>
Mon, 21 Nov 2011 10:59:26 +0000 (11:59 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 21 Nov 2011 10:59:26 +0000 (11:59 +0100)
Makefile

index 3175374..47bbf44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -85,7 +85,7 @@ client:
 
 plugins:
        mkdir -p client/lib/nagios/plugins
-       (cd client/lib/tests; (ls -1 *.tst; ls -1 `uname`/*.tst) | \
+       (cd client/lib/tests; (ls -1 *.tst; ls -1 `uname`/*.tst 2>/dev/null) | \
         while read x; do \
                name="check_nc_`basename "$$x" | cut -d'.' -f1 | tr '[A-Z]' '[a-z]'`"; \
                dest="../nagios/plugins/$$name"; \