annna-add-hashtag: run quinq-size script upon import - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit f91673c0d2a28aa066ee992cc7cedd3293791fb5 DIR parent 4b6a4cee09a7090193ad6e1ba512f13799776827 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 18 Oct 2022 10:15:54 +0200 annna-add-hashtag: run quinq-size script upon import Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-add-hashtag | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-add-hashtag b/annna-add-hashtag @@ -306,6 +306,12 @@ processtag() { mv "faststart_${tagfile}" "${tagfile}" ;; esac + + tagfilenew="$(/br/bin/quinq-size "${tagfile}" </dev/null | sed 's/.* -> //')" + if [ $? -eq 0 ]; + then + mv "${tagfilenew}" "${tagfile}" + fi } inserttag() {