annna-add-hashtag: fix logic with non-image/video files - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 3d9a8006e81bad32584253cc83da100d89e55cca
(DIR) parent 90966022566d1998015af8435a377fd4b7c734ec
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 22 Oct 2022 10:26:44 +0200
annna-add-hashtag: fix logic with non-image/video files
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-add-hashtag | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/annna-add-hashtag b/annna-add-hashtag
@@ -308,7 +308,7 @@ processtag() {
esac
tagfilenew="$(/br/bin/quinq-size "${tagfile}" </dev/null | sed 's/.* -> //')"
- if [ $? -eq 0 ];
+ if [ -e "${tagfilenew}" ] && [ $? -eq 0 ];
then
mv "${tagfilenew}" "${tagfile}"
fi