aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2025-03-07 17:25:38 +0100
committermid-kid <esteve.varela@gmail.com>2025-03-07 17:25:38 +0100
commit9383d36fe532adb9763193625e51dc4256b44518 (patch)
treef571d90b162f329995c05c24568949f9363c306f
parentFix termux instructions to not use "sudo" (diff)
downloadpokeyellow-9383d36fe532adb9763193625e51dc4256b44518.tar.gz
pokeyellow-9383d36fe532adb9763193625e51dc4256b44518.tar.xz
pokeyellow-9383d36fe532adb9763193625e51dc4256b44518.zip
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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