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

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