From addf0820e80286e42864f12ade3cd0215fa51bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 11 Apr 2017 13:23:06 +0200 Subject: Fix email and other scripts called from i3 --- config/i3blocks/scripts/email | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/i3blocks') 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" -- cgit v1.2.3