diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2023-04-23 06:15:05 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2023-04-23 06:15:05 +0000 |
commit | d7e3299f607fc2c58ec1f701c57402d39273b832 (patch) | |
tree | 7f85f24222ea77bd70f2c6c04da4112111decfe0 | |
parent | b658c0fce10a06493dc468fc9f6699120473e17b (diff) |
Ensure good exit status from type
When looking to see if nproc is available we do
not want warnings about 'type nproc' having bad exit.
-rw-r--r-- | share/mk/local.sys.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/local.sys.mk b/share/mk/local.sys.mk index 1aac5014b737..abcbf396c6b4 100644 --- a/share/mk/local.sys.mk +++ b/share/mk/local.sys.mk @@ -62,7 +62,7 @@ _PREMK_LIBDIR:= ${LIBDIR} .if make(*-jobs) && empty(JOB_MAX) # provide a reasonable? default for JOB_MAX based on ncpu JOB_MAX_FACTOR?= 1.33 -NPROC?= ${(type nproc) 2> /dev/null:L:sh:M/*:[1]} +NPROC?= ${(type nproc || true) 2> /dev/null:L:sh:M/*:[1]} NPROC:= ${NPROC} .if !empty(NPROC) ncpu!= ${NPROC} |