From b736ce5d35f9829a7c575a4fb3cf9e049ea676a6 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Sun, 7 Jul 2024 01:13:02 +0200 Subject: [PATCH] fix: Exclude most well-knows display managers' services from the listing --- src/script/arch-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 95ae27c..b8446aa 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -639,7 +639,7 @@ pacnew_files() { # Definition of the restart_services function: Verify if any services require a post update restart restart_services() { if [ -n "${packages_updated}" ]; then - services=$(yes No | sudo checkservices -FP 2> /dev/null | grep ".service" | grep -v -e "dbus-broker.service" -e "systemd-logind.service" | cut -f2 -d "'") + services=$(yes No | sudo checkservices -FP 2> /dev/null | grep ".service" | grep -v -e "dbus-broker.service" -e "systemd-logind.service" -e "gdm.service" -e "sddm.service" -e "lightdm.service" -e "lxdm.service" -e "slim.service" -e "xdm.service" -e "greetd.service" -e "nodm.service" -e "ly.service" -e "lemurs.service" | cut -f2 -d "'") services_num=$(echo "${services}" | wc -l) if [ -n "${services}" ]; then