From f853096ac0246a493cda7dfd07eaaf58ed9f4e90 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 13 Mar 2018 07:09:44 +0100 Subject: Touch up intro and tweak word counting script (It's *critical* that I get the imaginary file hierarchy right before I actually commit those notes, you see) Make sure update-count.sh only looks at committed files; there's going to be a lot of untracked files in there. Maybe I could add a "possibly lost" count for those? --- update-count.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update-count.sh') diff --git a/update-count.sh b/update-count.sh index abc8d42..c59daf8 100755 --- a/update-count.sh +++ b/update-count.sh @@ -14,7 +14,7 @@ count-leaks () echo ${words} ${pages} } -read words pages < <(find . -name '*.md' | count-leaks) +read words pages < <(git ls-files '*.md' | count-leaks) pattern="\([0-9]*\) words in \([0-9]*\) pages" actual="${words} words in ${pages} pages" -- cgit v1.2.3