From 9347a392f172cb803190e71e643ae924b916bf23 Mon Sep 17 00:00:00 2001 From: blake Date: Tue, 14 Oct 2025 23:29:40 -0500 Subject: [PATCH] better? --- modules/homelab/motd/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/homelab/motd/default.nix b/modules/homelab/motd/default.nix index 711ef83..f4e4c3a 100644 --- a/modules/homelab/motd/default.nix +++ b/modules/homelab/motd/default.nix @@ -79,10 +79,10 @@ in { echo -e "''${headings}gameservers:''${reset}" for service in velocity smp superflat bento; do status=$(systemctl is-active $service 2>/dev/null) - if [ "''${status}" = "active" ]; then - echo -e " ''${active}$service''${reset} - running" + if [ "$status" = "active" ]; then + printf "%-15s %s%s\n" "''${active}$service''${reset}" "running" else - echo -e " ''${inactive}$service''${reset} - not running" + printf "%-15s %s%s\n" "''${active}$service''${reset}" "not running" fi done echo