diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index e0175b43..0b4a44e0 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -577,10 +577,10 @@ print_updates() { if [ "$failed_services_count" -eq 0 ]; then printf " \\033[%sm%s\\033[0m All enabled services are running!\\n" "32" "" elif [ "$failed_services_count" -eq 1 ]; then - printf " %-4s \\033[%sm%s\\033[0m services are are currently running\\n" "$running_services_count" "32" "" + printf " \\033[%sm%s\\033[0m%-3s %s services are are currently running\\n" "32" "" "" "$running_services_count" printf " \\033[%sm%s\\033[0m 1 service failed to start (%s)\\n" "31" "" "$(systemctl --type=service | grep 'failed' | sed 's/..\([^ ]*\).service.*/\1/')" elif [ "$failed_services_count" -gt 1 ]; then - printf " %-4s \\033[%sm%s\\033[0m services are are currently running\\n" "$running_services_count" "32" "" + printf " \\033[%sm%s\\033[0m%-3s %s services are are currently running\\n" "32" "" "" "$running_services_count" printf " \\033[%sm%s\\033[0m%-3s %s services failed to start (see `systemctl --type=service`)\\n" "31" "" "" "$failed_services_count" fi fi