From d56848bc3f35398117067ae083a9fc6573cf6703 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 9 May 2023 15:23:03 -0700 Subject: [PATCH] added logging to success/warn/fail --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index f139734..c44c4e9 100644 --- a/functions +++ b/functions @@ -377,7 +377,7 @@ subboxborder(){ success(){ _line="$@" echo -e "\n" - boxborder "${scriptname} ${grn}SUCCESS${dfl} ${_line}" + logger boxborder "${scriptname} ${grn}SUCCESS${dfl} ${_line}" exit 0 } @@ -386,7 +386,7 @@ warn(){ _line="$@" echo -e "\n" boxtop - boxline "${lrd}WARNING${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}" + logger boxline "${lrd}WARNING${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}" boxbottom } @@ -395,7 +395,7 @@ fail(){ _line="$@" echo -e "\n" boxtop - boxline "${lrd}FAILED${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}" + logger boxline "${lrd}FAILED${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}" boxbottom exit $ec }