| textract-memecount.sh: handle creation of memecount.log - bitreich-memestats - … | |
| git clone git://src.adamsgaard.dk/bitreich-memestats | |
| Log | |
| Files | |
| Refs | |
| LICENSE | |
| --- | |
| commit de4c6bca50d8e9eaf654b32c5fda4ff83b36a52a | |
| parent c42bd61ec30b6ff6a4324a8c137a669f00bd6e0f | |
| Author: Anders Damsgaard <[email protected]> | |
| Date: Mon, 30 Aug 2021 17:26:49 +0200 | |
| extract-memecount.sh: handle creation of memecount.log | |
| Signed-off-by: Christoph Lohmann <[email protected]> | |
| Diffstat: | |
| M extract-memecount.sh | 5 ++++- | |
| 1 file changed, 4 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/extract-memecount.sh b/extract-memecount.sh | |
| t@@ -18,9 +18,13 @@ if [ ! -e "${annnadir}/${memefile}" ]; then | |
| exit 1 | |
| fi | |
| +cd "$annnadir" | |
| if [ -f "${outputfile}" ]; then | |
| lastrevision="$(tail -n 1 "${outputfile}" | cut -f 2)" | |
| revisionrange="${lastrevision}..HEAD" | |
| +else | |
| + firstrevision="$(git rev-list --max-parents=0 HEAD)" | |
| + revisionrange="${firstrevision}..HEAD" | |
| fi | |
| case "${outputfile}" in | |
| t@@ -31,7 +35,6 @@ case "${outputfile}" in | |
| ;; | |
| esac | |
| -cd "$annnadir" | |
| if [ "$update_annna" = "yes" ]; then | |
| git pull >/dev/null 2>&1 | |
| fi |