blob: 6e5d0e9271e0319f5c4d1fc30ba0ca6ac4723254 (
plain) (
blame)
1
2
3
4
5
6
|
#!/bin/sh
icon=
package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2 | cut -w -f2)
[ -n "$package_count" ] && [ "$package_count" -gt 0 ] && printf "%s%s" $icon $package_count && notify-send "$package_count package upgrade(s) available"
printf "\n"
|