Fix memecount.log after introduced #printf line in annna-start-services - bitreich-memestats - Bitreich meme statistics and graphs. HTML git clone git://bitreich.org/bitreich-memestats git://hg6vgqziawt5s4dj.onion/bitreich-memestats DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit 9a39dea48b13099733de2f6ff98de64901702b09 DIR parent 0680bf6c1222b81a5fdab9e623f73d80c9dbc136 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 24 May 2020 12:44:50 +0200 Fix memecount.log after introduced #printf line in annna-start-services Diffstat: M extract-memecount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/extract-memecount.sh b/extract-memecount.sh @@ -26,7 +26,7 @@ git log --pretty='format:%H %cd %at' --date="format:%Y-%m-%d" | \ grep -E '^ #[a-z0-9]' | wc -l | awk '{print $1}')" # ...but are now stored in $memefile - if [ "$n" -eq 0 ]; then + if [ "$n" -le 1 ]; then n="$(git show "$commit:$memefile" 2>/dev/null | wc -l | awk '{print $1}')" fi