From a41f37965e94dd70102fd3e965cc8817e1388b75 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 14 Sep 2024 02:27:45 -0300 Subject: [PATCH] Format log messages with pattern 'sourcezap: ' --- libexec/sourcezap/functions/print.sh | 4 ++-- share/sourcezap/CHANGELOG | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libexec/sourcezap/functions/print.sh b/libexec/sourcezap/functions/print.sh index b5d395f..8bb326e 100755 --- a/libexec/sourcezap/functions/print.sh +++ b/libexec/sourcezap/functions/print.sh @@ -2,10 +2,10 @@ printok() { - printf "ok: %s\n" "${1}" > /dev/stdout + printf "sourcezap: %s\n" "${1}" > /dev/stdout } printerr() { - printf "error: %s\n" "${1}" > /dev/stderr + printf "sourcezap: %s\n" "${1}" > /dev/stderr } diff --git a/share/sourcezap/CHANGELOG b/share/sourcezap/CHANGELOG index 51d8056..cfb6a8d 100644 --- a/share/sourcezap/CHANGELOG +++ b/share/sourcezap/CHANGELOG @@ -2,6 +2,10 @@ * vNEXT +**** Format log messages with program name +This change formats log messages written to standard output +and standard error with the pattern ~sourcezap: ~ + **** Replace chmod with -M switch This change replaces chmod with the -M switch. The -M switch is given to the ~pw useradd~ command in the ~setup-user~