From 9503f1d5b43a22101525bcf14e0e9a51857a2ca8 Mon Sep 17 00:00:00 2001 From: sydarn Date: Sun, 25 Jan 2026 11:49:58 +0100 Subject: [PATCH] buildfix: which -> command -v --- Makefile.variables | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.variables b/Makefile.variables index d0cb0820..2f73a66b 100644 --- a/Makefile.variables +++ b/Makefile.variables @@ -27,7 +27,8 @@ ifeq ($(CYG_CHECK),1) else # all non-windows environments ROOT := $(shell pwd) - SELINUX := $(shell which getenforce 2>&1 >/dev/null && echo :z) + # Deliberately use `command -v` instead of `which` to be POSIX compliant + SELINUX := $(shell command -v getenforce >/dev/null 2>&1 && echo :z) endif DEV_IMAGE := ${PROJECT}_dev