From 4c472a531002918b402119cecaf085480bdc5750 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Thu, 15 Jun 2023 00:19:17 +0000 Subject: [PATCH] Fixed SSH MOTD issues on macOS. --- home/dot_local/scripts/motd.bash | 126 ++++++++++++++++--------------- 1 file changed, 66 insertions(+), 60 deletions(-) diff --git a/home/dot_local/scripts/motd.bash b/home/dot_local/scripts/motd.bash index db7ce048..097d5f47 100644 --- a/home/dot_local/scripts/motd.bash +++ b/home/dot_local/scripts/motd.bash @@ -280,75 +280,81 @@ print_banner() { } print_processor() { - printf "\\n" - printf " \\033[1;37mProcessor:\\033[0m\\n" + if [ ! -d /Applications ] && [ ! -d /System ]; then + # System is not macOS + printf "\\n" + printf " \\033[1;37mProcessor:\\033[0m\\n" - processor_loadavg="$(cut -d " " -f 1,2,3