Always display update to update widget, list glibc as reboot
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
febd8e24ca
commit
5fe15aeef4
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
req_restart_prefix=(
|
req_restart_prefix=(
|
||||||
|
glibc
|
||||||
linux
|
linux
|
||||||
systemd
|
systemd
|
||||||
)
|
)
|
||||||
|
@ -16,7 +17,6 @@ function get_grep() {
|
||||||
updates=$(checkupdates)
|
updates=$(checkupdates)
|
||||||
|
|
||||||
num=$(echo "${updates}" | grep -c -- '->')
|
num=$(echo "${updates}" | grep -c -- '->')
|
||||||
[ $num -gt 0 ] || exit
|
|
||||||
|
|
||||||
req_restart=""
|
req_restart=""
|
||||||
echo "${updates}" | grep -qE "^($(get_grep)) " && req_restart=' <span color="#dd0000">(reboot)</span>'
|
echo "${updates}" | grep -qE "^($(get_grep)) " && req_restart=' <span color="#dd0000">(reboot)</span>'
|
||||||
|
|
Loading…
Reference in a new issue