From e35d32a0b61e8fab80142ffb006cb868b36383cf Mon Sep 17 00:00:00 2001 From: sydarn <151048164+sydarn@users.noreply.github.com> Date: Sat, 31 Jan 2026 04:51:56 +0100 Subject: [PATCH] buildfix: which -> command -v (#2582) --- 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