Introduction
Introduction Statistics Contact Development Disclaimer Help
extract-memecount.sh: handle creation of memecount.log - bitreich-memestats - B…
git clone git://bitreich.org/bitreich-memestats git://hg6vgqziawt5s4dj.onion/bi…
Log
Files
Refs
Tags
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
@@ -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
@@ -31,7 +35,6 @@ case "${outputfile}" in
;;
esac
-cd "$annnadir"
if [ "$update_annna" = "yes" ]; then
git pull >/dev/null 2>&1
fi
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.