Blame SOURCES/bz1653700-2-build-fix-check_used_options.patch

2d8bb4
From 267afc5caa0580cc483220e671cda094413a4e16 Mon Sep 17 00:00:00 2001
2d8bb4
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
2d8bb4
Date: Wed, 28 Nov 2018 09:54:16 +0100
2d8bb4
Subject: [PATCH] build: fix if-redirection to make check_used_options run for
2d8bb4
 the agents as intended
2d8bb4
2d8bb4
---
2d8bb4
 make/fencebuild.mk | 2 +-
2d8bb4
 1 file changed, 1 insertion(+), 1 deletion(-)
2d8bb4
2d8bb4
diff --git a/make/fencebuild.mk b/make/fencebuild.mk
2d8bb4
index 9e8bd692..143082f0 100644
2d8bb4
--- a/make/fencebuild.mk
2d8bb4
+++ b/make/fencebuild.mk
2d8bb4
@@ -33,7 +33,7 @@ define gen_agent_from_py
2d8bb4
 		-e 's#@''PING4_CMD@#${PING4_CMD}#g' \
2d8bb4
 	> $@
2d8bb4
 
2d8bb4
-	if [ 0 -eq `echo "$(@)" | grep fence_ 2>&1 /dev/null; echo $$?` ]; then \
2d8bb4
+	if [ 0 -eq `echo "$(@)" | grep fence_ > /dev/null 2>&1; echo $$?` ]; then \
2d8bb4
 		PYTHONPATH=$(abs_top_srcdir)/lib:$(abs_top_builddir)/lib $(PYTHON) $(top_srcdir)/lib/check_used_options.py $@; \
2d8bb4
 	else true ; fi
2d8bb4