From 3fa4def6eac1a284f6e330794f9c4b7be69367f0 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 24 Nov 2018 21:11:22 -0800 Subject: [PATCH] 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 Reviewed-By: Richard Lau Reviewed-By: Gireesh Punathil --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3dc34995cce213..71378b21f44058 100644 --- a/Makefile +++ b/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