From a8ae1e485116ebf73fd023b31e9e72f1a233204c Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Fri, 6 Jul 2018 13:37:44 +0100
Subject: [PATCH] One less space

---
 src/freedombone-notification | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-notification b/src/freedombone-notification
index 5ecd09db7..164a89197 100755
--- a/src/freedombone-notification
+++ b/src/freedombone-notification
@@ -101,7 +101,7 @@ fi
 image_extra=''
 if [ -f $notification_image_filename ]; then
     # extra option for mail command
-    image_extra="-A $notification_image_filename"
+    image_extra=" -A $notification_image_filename"
 
     # If syncthing is installed then copy the image to the admin
     if [ -d "/home/$ADMIN_USERNAME/Sync" ]; then
@@ -112,7 +112,7 @@ fi
 # send email to administrator
 if [ "$SUBJECT" ]; then
     # shellcheck disable=SC2086
-    echo "$MESSAGE" | mail -s "$SUBJECT" $image_extra "$ADMIN_EMAIL_ADDRESS"
+    echo "$MESSAGE" | mail -s "$SUBJECT"$image_extra "$ADMIN_EMAIL_ADDRESS"
 fi
 
 if [ -d /etc/prosody ]; then
-- 
GitLab