Fix empty memes after last head -n 1 fix. - 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 126fadacbfc0a9355630cb69d5d26c42e280c62e
(DIR) parent 9aa038d67c5599d189420a7bf74d91dc4bc0ece2
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sat, 30 Dec 2023 21:30:32 +0100
Fix empty memes after last head -n 1 fix.
Diffstat:
M annna-message-common | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -1306,7 +1306,8 @@ do
*)
esac
- if tagline="$(grep "${tag} " "${hashtagfile}" | shuf -n 1)";
+ tagline="$(grep "${tag} " "${hashtagfile}" | shuf -n 1)";
+ if [ -n "${tagline}" ];
then
if [ $nospoil -eq 0 ];
then