From 748de6be89690237c602f7f8379e2d345d060502 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 3a343301d640bc..9c46f727839afd 100644 --- a/Makefile +++ b/Makefile @@ -1079,7 +1079,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