From 51b52191e746b704c69ed6da3f71edca7c1ede73 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 23 Feb 2018 12:46:32 -0500 Subject: [PATCH] Fix SELINUXOPT handling Signed-off-by: Daniel J Walsh --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a185fe34..15298c68 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ CRICTL_CONFIG_DIR=${DESTDIR}/etc BASHINSTALLDIR=${PREFIX}/share/bash-completion/completions OCIUMOUNTINSTALLDIR=$(PREFIX)/share/oci-umount/oci-umount.d -SELINUXOPT ?= $(shell command -v selinuxenabled >/dev/null 2>&1 && selinuxenabled && echo -Z) +SELINUXOPT ?= $(shell selinuxenabled 2>/dev/null && echo -Z) PACKAGES ?= $(shell go list -tags "${BUILDTAGS}" ./... | grep -v github.com/kubernetes-incubator/cri-o/vendor) COMMIT_NO := $(shell git rev-parse HEAD 2> /dev/null || true)