From a36d4e0fe254d7f99b53c61fd4c09ecea2b81806 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 7 Dec 2018 16:05:53 +0100 Subject: [PATCH] Fix one-off error (again) Signed-off-by: Knut Ahlers --- .config/i3blocks/arch-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3blocks/arch-update b/.config/i3blocks/arch-update index fa61197..8467e15 100755 --- a/.config/i3blocks/arch-update +++ b/.config/i3blocks/arch-update @@ -15,7 +15,7 @@ function get_grep() { updates=$(checkupdates) -num=$(echo -n "${updates}" | wc -l) +num=$(echo "${updates}" | grep -c -- '->') [ $num -gt 0 ] || exit req_restart=""