From 7d23e55581d0be5af3a9addced5ef87f30b95d93 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Wed, 17 Jul 2024 22:21:50 -0400 Subject: [PATCH] Tidy up motd --- script-install-motd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script-install-motd b/script-install-motd index aee0c9cd..34fd0d4a 100755 --- a/script-install-motd +++ b/script-install-motd @@ -13,11 +13,12 @@ main() { is_root - cp "$0" /usr/local/bin/ script="/usr/local/bin/${0##*/}" service="/usr/lib/systemd/system/motd.service" timer="/usr/lib/systemd/system/motd.timer" + [[ -f $script ]] || cp "$0" /usr/local/bin/ + install_services fi } @@ -31,8 +32,8 @@ print_motd() { undim='\e[0m' # shellcheck disable=SC2016 - echo -e ' - _ _ _ _ _ + echo -e \ +' _ _ _ _ _ | | | | | | | | | | | |__| | __ _ _ __| |_ _ __ ___ __ _ _ __ | | __ _| |__ | __ |/ _` | `__| __| `_ ` _ \ / _` | `_ \ | | / _` | `_ \