Skip to content
Snippets Groups Projects
Verified Commit 3587d910 authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

Don't send mail if no text was generated

parent a438e71c
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,13 @@ function preview {
echo ""
}
PREVIEW_TEXT="$(preview)"
if [ -z "${PREVIEW_TEXT}" ]
then
(>&2 echo "nothing to send")
exit 0
fi
(cat << EOF
Subject: Programm-Info-Bot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment