From 018eed8e61d0454b9eb0a1a58a4df6fff400a783 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 3 May 2016 15:57:02 +0100 Subject: Correct mistake in email script --- bin/bin/email | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3