summaryrefslogtreecommitdiff
path: root/update-count.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2018-03-13 07:09:44 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2018-03-13 07:15:43 +0100
commitf853096ac0246a493cda7dfd07eaaf58ed9f4e90 (patch)
treefb3dc45a3cd00cb0b727fcb738e094b6d3695039 /update-count.sh
parentdbaa369b02a1acdb29a39267a76e9ae37893ddc7 (diff)
downloadmemory-leaks-f853096ac0246a493cda7dfd07eaaf58ed9f4e90.tar.xz
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?
Diffstat (limited to 'update-count.sh')
-rwxr-xr-xupdate-count.sh2
1 files changed, 1 insertions, 1 deletions
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"