summaryrefslogtreecommitdiff
path: root/i3blocks-packages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3blocks-packages.sh')
-rwxr-xr-xi3blocks-packages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3blocks-packages.sh b/i3blocks-packages.sh
index 992fc37..136a76a 100755
--- a/i3blocks-packages.sh
+++ b/i3blocks-packages.sh
@@ -1,5 +1,5 @@
#!/bin/sh
icon=󰏖
-package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2)
+package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2 | cut -w -f2)
[ $package_count -gt 0 ] && printf "$icon%s\n" $package_count && notify-send "$package_count package upgrade(s) available"