From 85168e9318568a1a675d4596824f94c6afc7dd58 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 6 Oct 2020 10:49:38 -0400 Subject: [PATCH] add title function --- salt/common/tools/sbin/so-analyst-install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/common/tools/sbin/so-analyst-install b/salt/common/tools/sbin/so-analyst-install index 732ea6936..e31ad58e1 100755 --- a/salt/common/tools/sbin/so-analyst-install +++ b/salt/common/tools/sbin/so-analyst-install @@ -23,6 +23,10 @@ fi INSTALL_LOG=/root/so-analyst-install.log exec &> >(tee -a "$INSTALL_LOG") +title() { + echo -e "\n-----------------------------\n $1\n-----------------------------\n" >> "$setup_log" 2>&1 +} + logCmd() { cmd=$1 info "Executing command: $cmd"