motd-gen

my motd scripts
git clone git://git.ckyln.com/~cem/motd-gen.git
Log | Files | Refs | README | LICENSE

commit 61b0d48f21ac303410a5fb0b596c8b1973c3650f
parent a9099a2a79d1435bf41575c2be57a96ac804d78a
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  3 Jan 2020 00:17:46 +0300

services: use column for better view

Diffstat:
MSHAREDIR/60-services.motd | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SHAREDIR/60-services.motd b/SHAREDIR/60-services.motd @@ -40,6 +40,7 @@ dockercheck() { } check() { + printf "\033[1mSystem Services\033[0;00m\\n" local number number=0 while IFS=, read -r service program ; do @@ -50,7 +51,7 @@ check() { d) dockercheck "$program" ;; esac [ $(( $number % $COLUMNS )) -eq 0 ] && printf "\n" - done < "$CHECKFILE" + done < "$CHECKFILE" | column -t printf "\n\n" }