From a8a07b7c5d3080f99e72b8bb78757154c5056f00 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Mon, 30 Jun 2025 11:44:19 -0500 Subject: [PATCH] pretty printing to shell. log support coming next push. --- SetupNewSystem.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SetupNewSystem.sh b/SetupNewSystem.sh index 230a1e5..139192d 100644 --- a/SetupNewSystem.sh +++ b/SetupNewSystem.sh @@ -28,6 +28,14 @@ function print_error() tput sgr0 } +log_info_message() { + local message="$1" + local logfile="/var/log/my_script.log" # Define your log file path + + echo "$message" | tee -a "$logfile" +} + + function error_out() { print_error "$1"