From 6afd10b296dbe1df894034c2ae3f73ae09178c43 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 27 Mar 2026 18:35:26 -0700 Subject: [PATCH] Only show the output if not running as root. --- rc_shared.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index 4c131ef..28db791 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -1,7 +1,8 @@ # Notes: # - Please keep this file working for both BASH and ZSH. :) -echo "`date` - Shared RC Config - Loading..." +[[ $(whoami) != "root" ]] && + echo "`date` - Shared RC Config - Loading..." ## Variables ## @@ -60,4 +61,5 @@ function send-masters { ## Complete! ## -echo "`date` - Shared RC Config - Complete!" +[[ $(whoami) != "root" ]] && + echo "`date` - Shared RC Config - Complete!"