commit 351f058a5559cbfde92849385c4860a8e54b8c7f parent 9c32fbededb70fdb4ffca67f111d9bcff0e61852 Author: Anders Damsgaard <anders@adamsgaard.dk> 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' \) | wc -l } 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 -l)" n_filter="$(find /br/gopher/memecache/filter/ -maxdepth 1 -type f | wc -l)" printf '\n '