Skip to content

Commit 6d6d593

Browse files
committed
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.
1 parent 4d6c3e2 commit 6d6d593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pokecrystal11_vc_obj := $(rom_obj:.o=11_vc.o)
3535

3636
### Build tools
3737

38-
ifeq (,$(shell which sha1sum))
38+
ifeq (,$(shell command -v sha1sum 2>/dev/null))
3939
SHA1 := shasum
4040
else
4141
SHA1 := sha1sum

0 commit comments

Comments
 (0)