From 7013b784f3a8b2f07dec0dab97d70ea4222c03c5 Mon Sep 17 00:00:00 2001 From: Saivann Date: Fri, 26 Jun 2015 14:38:18 -0400 Subject: [PATCH] Prevent check-for-subheading-anchors to match binary files --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7775a84110..fc24cad265 100644 --- a/Makefile +++ b/Makefile @@ -250,6 +250,6 @@ check-for-subheading-anchors: ## Ensure all subheadings on the site have anchors so the Javascript ## function addAnchorLinks() can add anchor link affordance to each ## subhead - $S grep -r -L 'Note: this file exempt from check-for-subheading-anchors check' _site/ \ + $S grep -r -i --include \*.html -L 'Note: this file exempt from check-for-subheading-anchors check' _site/ \ | xargs grep ']* id=' | eval $(ERROR_ON_OUTPUT)