diff options
Diffstat (limited to 'dot-config/yambar/scripts/pacman-notify')
| -rwxr-xr-x | dot-config/yambar/scripts/pacman-notify | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
