aboutsummaryrefslogtreecommitdiff
path: root/dot-config/yambar/scripts/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/yambar/scripts/pacman')
-rwxr-xr-xdot-config/yambar/scripts/pacman2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot-config/yambar/scripts/pacman b/dot-config/yambar/scripts/pacman
index 7015e5b..3899172 100755
--- a/dot-config/yambar/scripts/pacman
+++ b/dot-config/yambar/scripts/pacman
@@ -1,7 +1,7 @@
#!/bin/sh
# Get package count
-count=$(wc -l < ~/.cache/updates)
+count=$(sed '/^$/d' ~/.cache/updates | wc -l)
# Display count
printf "%s\n\n" "count|int|$count"