diff options
Diffstat (limited to 'config/i3blocks/scripts/email')
-rwxr-xr-x | config/i3blocks/scripts/email | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/i3blocks/scripts/email b/config/i3blocks/scripts/email index db2dd29..2d26280 100755 --- a/config/i3blocks/scripts/email +++ b/config/i3blocks/scripts/email @@ -1,5 +1,6 @@ -#!/bin/bash -OUT="$(email-unread -s | tr "\n" " ")" +#!/bin/sh +# Note: we cut last character because output ends with new line +OUT="$(email-unread -s | tr "\n" " " | sed 's/ $//')" echo "$OUT" echo "$OUT" echo "#ffff00" |