Introduction
Introduction Statistics Contact Development Disclaimer Help
do not include .orig files in file counts - bitreich-memestats - Bitreich meme …
git clone git://bitreich.org/bitreich-memestats git://hg6vgqziawt5s4dj.onion/bi…
Log
Files
Refs
Tags
LICENSE
---
commit 351f058a5559cbfde92849385c4860a8e54b8c7f
parent 9c32fbededb70fdb4ffca67f111d9bcff0e61852
Author: Anders Damsgaard <[email protected]>
Date: Wed, 27 Dec 2023 11:41:25 +0100
do not include .orig files in file counts
Diffstat:
M extract-memecount.sh | 2 +-
M media-stats.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extract-memecount.sh b/extract-memecount.sh
@@ -17,7 +17,7 @@ revisionrange=""
datefmt="%Y-%m-%d"
countolderfiles() {
- find "$1" -maxdepth 1 -type f \! -newerct "$2" | wc -l
+ find "$1" -maxdepth 1 -type f \! \( -newerct "$2" -o -name '*.orig' \)…
}
if [ ! -e "${annnadir}/${memefile}" ]; then
diff --git a/media-stats.sh b/media-stats.sh
@@ -59,7 +59,7 @@ n_img="$(grep '.*png$\|.*jpg$\|.*JPG$\|.*gif$' "${pathfile}" \
2>/dev/null | wc -l)"
n_vid="$(grep '.*mkv$\|.*mp4$\|.*webm$\|.*mp3$|.*ogg$' "${pathfile}" \
2>/dev/null | wc -l)"
-n_emoji="$(find /br/gopher/emoji/ -maxdepth 1 -type f | wc -l)"
+n_emoji="$(find /br/gopher/emoji/ -maxdepth 1 -type f \! -name '*.orig' | wc -…
n_filter="$(find /br/gopher/memecache/filter/ -maxdepth 1 -type f | wc -l)"
printf '\n '
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.