From bc140a70f0b7976005fcef3430477310feacd438 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Mon, 23 Dec 2024 23:18:23 +0000 Subject: Fix yambar pacman notification when no updates --- dot-config/yambar/scripts/pacman-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dot-config/yambar/scripts/pacman-notify') diff --git a/dot-config/yambar/scripts/pacman-notify b/dot-config/yambar/scripts/pacman-notify index 9c6a84b..25ff146 100755 --- a/dot-config/yambar/scripts/pacman-notify +++ b/dot-config/yambar/scripts/pacman-notify @@ -1,7 +1,7 @@ #!/bin/sh # Get package count -count=$(wc -l < ~/.cache/updates) +count=$(sed '/^$/d' ~/.cache/updates | wc -l) # Generate message if [ "$count" = 0 ]; then -- cgit