Format log messages with pattern 'sourcezap: <message>'
Some checks are pending
sourcezap / shellcheck (push) Waiting to run

This commit is contained in:
0x1eef 2024-09-14 02:27:45 -03:00
parent 56089665a7
commit a41f37965e
2 changed files with 6 additions and 2 deletions

View file

@ -2,10 +2,10 @@
printok() printok()
{ {
printf "ok: %s\n" "${1}" > /dev/stdout printf "sourcezap: %s\n" "${1}" > /dev/stdout
} }
printerr() printerr()
{ {
printf "error: %s\n" "${1}" > /dev/stderr printf "sourcezap: %s\n" "${1}" > /dev/stderr
} }

View file

@ -2,6 +2,10 @@
* vNEXT * vNEXT
**** Format log messages with program name
This change formats log messages written to standard output
and standard error with the pattern ~sourcezap: <message>~
**** Replace chmod with -M switch **** Replace chmod with -M switch
This change replaces chmod with the -M switch. The -M switch This change replaces chmod with the -M switch. The -M switch
is given to the ~pw useradd~ command in the ~setup-user~ is given to the ~pw useradd~ command in the ~setup-user~