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

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