build: replace -not
with !
in find
Replace `find -not` usage with `find !` as `-not` is not universally supported. Fixes: https://github.com/nodejs/node/issues/24634 PR-URL: https://github.com/nodejs/node/pull/24635 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
9389b464ea
commit
e20be47c17
2
Makefile
2
Makefile
@ -1084,7 +1084,7 @@ tools/.docmdlintstamp: $(LINT_MD_DOC_FILES)
|
||||
LINT_MD_TARGETS = src lib benchmark test tools/doc tools/icu
|
||||
LINT_MD_ROOT_DOCS := $(wildcard *.md)
|
||||
LINT_MD_MISC_FILES := $(shell find $(LINT_MD_TARGETS) -type f \
|
||||
-not -path '*node_modules*' -not -path 'test/fixtures/*' -name '*.md') \
|
||||
! -path '*node_modules*' ! -path 'test/fixtures/*' -name '*.md') \
|
||||
$(LINT_MD_ROOT_DOCS)
|
||||
run-lint-misc-md = tools/lint-md.js -q -f $(LINT_MD_MISC_FILES)
|
||||
# Lint other changed markdown files maintained by us
|
||||
|
Loading…
x
Reference in New Issue
Block a user