Skip to content
Snippets Groups Projects
Commit 0fdb94a0 authored by Martin Strbacka's avatar Martin Strbacka
Browse files

mail_notifier: notifier: If msmtp die then die with it with the same err level.

parent ae9eafdd
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,12 @@ send_mail() {
cat $msg_file | msmtp -C $msmtp_cfg_file $mail_to
err_lvl=$?
[ $err_lvl -eq 0 ] && mark_msgs
if [ $err_lvl -eq 0 ]; then
mark_msgs
else
unlock $locker_stamp
exit $err_lvl
fi
fi
unlock $locker_stamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment