Inline utils/printerr, utils/printok

This commit is contained in:
0x1eef 2024-07-19 03:29:37 -03:00
parent 19c465d6be
commit f65748c533
3 changed files with 2 additions and 22 deletions

View file

@ -7,10 +7,10 @@ git()
printok() printok()
{ {
"${libexec}"/utils/printok "${@}" printf "ok: %s\n" "${msg}" > /dev/stdout
} }
printerr() printerr()
{ {
"${libexec}"/utils/printerr "${@}" printf "error: %s\n" "${err}" > /dev/stderr
} }

View file

@ -1,10 +0,0 @@
#!/bin/sh
set -e
##
# variables
err="${1}"
##
# main
printf "error: %s\n" "${err}" > /dev/stderr

View file

@ -1,10 +0,0 @@
#!/bin/sh
set -e
##
# variables
msg="${1}"
##
# main
printf "ok: %s\n" "${msg}" > /dev/stdout