diff options
author | raisinten <raisinten@gmail.com> | 2020-11-14 18:20:03 +0300 |
---|---|---|
committer | Beth Griggs <bgriggs@redhat.com> | 2020-12-15 23:15:24 +0300 |
commit | 699bb348d95c0b4078e542dee6efe9d54748c445 (patch) | |
tree | 5f7dc9aca9714614e04267cdebcd8290641ec533 /BSDmakefile | |
parent | d27e56356bb62bacf74965e441030faeeec2b24c (diff) |
build: replace which with command -v
PR-URL: https://github.com/nodejs/node/pull/36118
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'BSDmakefile')
-rw-r--r-- | BSDmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BSDmakefile b/BSDmakefile index b2f36fa2872..3994ab9efd9 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -3,7 +3,7 @@ FLAGS=${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W} all: .DEFAULT .DEFAULT: - @which gmake > /dev/null 2>&1 ||\ + @command -v gmake > /dev/null 2>&1 ||\ (echo "GMake is required for node.js to build.\ Install and try again" && exit 1) @gmake ${.FLAGS} ${.TARGETS} |