From 1b7860131dea9b7299b6bffff25076c96ca02389 Mon Sep 17 00:00:00 2001 From: LIN SE Date: Wed, 21 Feb 2024 13:54:08 +0100 Subject: [PATCH] welcome.sh: use nl instead of sed --- to_system/etc/profile.d/welcome.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to_system/etc/profile.d/welcome.sh b/to_system/etc/profile.d/welcome.sh index 5463822..fe85bf8 100755 --- a/to_system/etc/profile.d/welcome.sh +++ b/to_system/etc/profile.d/welcome.sh @@ -5,7 +5,7 @@ function service_status () { for name in $@; do \ enabled=$(systemctl is-enabled ${name} 2> /dev/null) && \ echo ${name} $(systemctl is-active ${name}) $enabled; \ - done | column -t | grep --color=always '\(disabled\|inactive\|$\)' | sed 's/^/ /' + done | column -t | grep --color=always '\(disabled\|inactive\|$\)' | nl -bn } alias current='cat /root/aputools/current' service_status router frappy display