Skip to content

Commit

Permalink
fix: Exclude most well-knows display managers' services from the listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Jul 6, 2024
1 parent 65f5621 commit b736ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b736ce5

Please sign in to comment.