From 623f758cb2a8a6b6febd7a2f5a3245f706bef3cd Mon Sep 17 00:00:00 2001 From: Rafal Stefanowski Date: Mon, 30 Sep 2019 12:59:58 +0200 Subject: [PATCH] Improve check for Python 3 in Makefile Signed-off-by: Rafal Stefanowski --- utils/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/Makefile b/utils/Makefile index dca0223..3ab00d6 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -7,7 +7,7 @@ CASCTL_DIR = /lib/opencas UDEVRULES_DIR = /lib/udev/rules.d UDEV:=$(shell which udevadm) SYSTEMCTL := $(shell which systemctl) -PYTHON3 := $(shell which python3 &> /dev/null && echo 1) +PYTHON3 := $(shell which python3) ifeq (, $(shell which systemctl)) define cas_install @@ -33,7 +33,7 @@ endif all: ; install: -ifneq (1, $(PYTHON3)) +ifeq (, $(PYTHON3)) $(error package 'python3' not found) else @echo "Installing Open-CAS utils"