Update dotfiles/.local/motd.sh

This commit is contained in:
Brian Zalewski 2022-10-31 23:04:08 +00:00
parent e2d53a121f
commit 323b448f68

View file

@ -533,7 +533,7 @@ print_updates() {
updates_message="The system apt packages are up-to-date!" updates_message="The system apt packages are up-to-date!"
fi fi
printf " \\033[%sm%s\\033[0m %s\\n" "$updates_color" "$updates_icon" "$updates_message" printf " \\033[%sm%s \\033[0m %s\\n" "$updates_color" "$updates_icon" "$updates_message"
elif [ -f /usr/bin/dnf ]; then elif [ -f /usr/bin/dnf ]; then
printf "\\n" printf "\\n"
printf " \\033[1;37mHealth:\\033[0m\\n" printf " \\033[1;37mHealth:\\033[0m\\n"
@ -566,7 +566,7 @@ print_updates() {
updates_message="The system dnf packages are up-to-date!" updates_message="The system dnf packages are up-to-date!"
fi fi
printf " \\033[%sm%s\\033[0m %s\\n" "$updates_color" "$updates_icon" "$updates_message" printf " \\033[%sm%s \\033[0m %s\\n" "$updates_color" "$updates_icon" "$updates_message"
fi fi
if command -v systemctl > /dev/null; then if command -v systemctl > /dev/null; then
running_services_count="$(systemctl --type=service --plain | grep 'active running' | wc -l)" running_services_count="$(systemctl --type=service --plain | grep 'active running' | wc -l)"