Fix empty memes after last head -n 1 fix. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 126fadacbfc0a9355630cb69d5d26c42e280c62e | |
parent 9aa038d67c5599d189420a7bf74d91dc4bc0ece2 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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 |