summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-05-03 15:57:02 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-05-03 15:57:02 +0100
commit018eed8e61d0454b9eb0a1a58a4df6fff400a783 (patch)
tree663435d49e7a8159ede9aae910d5db3010d72cb6 /bin
parent3633f41a5044c6e1cef4feac7885c934897be6f1 (diff)
Correct mistake in email script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/email2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bin/email b/bin/bin/email
index 84e923e..c0db4bd 100755
--- a/bin/bin/email
+++ b/bin/bin/email
@@ -7,9 +7,9 @@ export DISPLAY=:0
mbsync -a
new_mails=$(find $HOME/.mail -path '*/new/*' -type f)
-subjects=$(cat $(echo -e ${new_mails/'\n'/' '}) | grep "^Subject: " | sed "s/^Subject: //g")
if [[ ! -z ${new_mails} ]]; then
+ subjects=$(cat $(echo -e ${new_mails/'\n'/' '}) | grep "^Subject: " | sed "s/^Subject: //g")
/usr/bin/notify-send -t 3 "New mail(s)!" "${subjects}"
fi