From 4076500a8cfecc62b8a4eb407127f9d19d83c473 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 31 Oct 2022 22:55:26 +0000 Subject: [PATCH] Update dotfiles/.local/motd.sh --- dotfiles/.local/motd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index 2adb1fe6..ddc59b60 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -569,8 +569,8 @@ print_updates() { printf " \\033[%sm%s\\033[0m %s\\n" "$updates_color" "$updates_icon" "$updates_message" fi if command -v systemctl > /dev/null; then - running_services_count="$(systemctl --type=service | grep 'active running' | wc -l)" - failed_services_count="$(systemctl --type=service | grep 'failed' | wc -l)" + running_services_count="$(systemctl --type=service --plain | grep 'active running' | wc -l)" + failed_services_count="$(systemctl --type=service --plain | grep 'failed' | wc -l)" if [ "$failed_services_count" -eq 0 ]; then printf " \\033[%sm%s\\033[0m All enabled services are running!\\n" "32" ""