diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-05-03 15:57:02 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-05-03 15:57:02 +0100 |
commit | 018eed8e61d0454b9eb0a1a58a4df6fff400a783 (patch) | |
tree | 663435d49e7a8159ede9aae910d5db3010d72cb6 | |
parent | 3633f41a5044c6e1cef4feac7885c934897be6f1 (diff) |
Correct mistake in email script
-rwxr-xr-x | bin/bin/email | 2 |
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 |