diff options
Diffstat (limited to 'update-count.sh')
| -rwxr-xr-x | update-count.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/update-count.sh b/update-count.sh index c59daf8..e7ebf8f 100755 --- a/update-count.sh +++ b/update-count.sh @@ -1,5 +1,10 @@ #!/bin/bash +list-committed () +{ + GIT_LITERAL_PATHSPECS='' git ls-files '*.md' +} + count-leaks () { let pages=0 @@ -14,7 +19,9 @@ count-leaks () echo ${words} ${pages} } -read words pages < <(git ls-files '*.md' | count-leaks) + + +read words pages < <(list-committed | count-leaks) pattern="\([0-9]*\) words in \([0-9]*\) pages" actual="${words} words in ${pages} pages" |
