diff options
Diffstat (limited to 'update-count.sh')
| -rwxr-xr-x | update-count.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update-count.sh b/update-count.sh index 8ada899..f592bcb 100755 --- a/update-count.sh +++ b/update-count.sh @@ -12,7 +12,7 @@ count-leaks () while read filename do - let words+=$(wc -w ${filename} | cut -d' ' -f1) + let words+=$(git show HEAD:${filename} | wc -w | cut -d' ' -f1) let pages+=1 done @@ -23,7 +23,7 @@ count-leaks () read words pages < <(list-tracked | count-leaks) -pattern="\([0-9]*\) words in \([0-9]*\) pages" +pattern="[0-9]* words in [0-9]* pages" actual="${words} words in ${pages} pages" sed -i "s/${pattern}/${actual}/" README.md |
