Always display update to update widget, list glibc as reboot

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-11 17:00:04 +01:00
parent febd8e24ca
commit 5fe15aeef4
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -2,6 +2,7 @@
set -euo pipefail
req_restart_prefix=(
glibc
linux
systemd
)
@ -16,7 +17,6 @@ function get_grep() {
updates=$(checkupdates)
num=$(echo "${updates}" | grep -c -- '->')
[ $num -gt 0 ] || exit
req_restart=""
echo "${updates}" | grep -qE "^($(get_grep)) " && req_restart=' <span color="#dd0000">(reboot)</span>'