From 9383d36fe532adb9763193625e51dc4256b44518 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 7 Mar 2025 17:25:38 +0100 Subject: Use "command -v" instead of "which" The "which" command has been deprecated in debianutils, and while other distributions still ship it, "command -v" is in POSIX and implemented without external packages. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 08c4dd9b..e64c4254 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ pokeblue_vc_obj := $(rom_obj:.o=_blue_vc.o) ### Build tools -ifeq (,$(shell which sha1sum)) +ifeq (,$(shell command -v sha1sum 2>/dev/null)) SHA1 := shasum else SHA1 := sha1sum -- cgit v1.3.1-sl0p