Inline utils/printerr, utils/printok
This commit is contained in:
parent
19c465d6be
commit
f65748c533
3 changed files with 2 additions and 22 deletions
|
@ -7,10 +7,10 @@ git()
|
|||
|
||||
printok()
|
||||
{
|
||||
"${libexec}"/utils/printok "${@}"
|
||||
printf "ok: %s\n" "${msg}" > /dev/stdout
|
||||
}
|
||||
|
||||
printerr()
|
||||
{
|
||||
"${libexec}"/utils/printerr "${@}"
|
||||
printf "error: %s\n" "${err}" > /dev/stderr
|
||||
}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
##
|
||||
# variables
|
||||
err="${1}"
|
||||
|
||||
##
|
||||
# main
|
||||
printf "error: %s\n" "${err}" > /dev/stderr
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
##
|
||||
# variables
|
||||
msg="${1}"
|
||||
|
||||
##
|
||||
# main
|
||||
printf "ok: %s\n" "${msg}" > /dev/stdout
|
Loading…
Reference in a new issue