From 6d6d5938e5dd3d835086d7ee951c8f9242916beb Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 7 Mar 2025 17:20:42 +0100 Subject: [PATCH] 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(-) diff --git a/Makefile b/Makefile index ed76db4b2..c093b3e14 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ pokecrystal11_vc_obj := $(rom_obj:.o=11_vc.o) ### Build tools -ifeq (,$(shell which sha1sum)) +ifeq (,$(shell command -v sha1sum 2>/dev/null)) SHA1 := shasum else SHA1 := sha1sum