These should go into stderr
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
7afeb29bf2
commit
a4bd260bfe
6
ssm
6
ssm
|
@ -119,7 +119,7 @@ var() {
|
|||
die() {
|
||||
declare code=${1:-0}
|
||||
|
||||
[[ "$2" ]] && printf '%s\n' "$2"
|
||||
[[ "$2" ]] && printf '%s\n' "$2" >&2
|
||||
exit "$code"
|
||||
}; readonly -f die
|
||||
|
||||
|
@ -403,7 +403,7 @@ result() {
|
|||
|
||||
[[ "${msgs[$rc]}" ]] || msgs["$rc"]="Failed!"
|
||||
|
||||
printf '%s\n' "${msgs[$rc]}"
|
||||
printf '%s\n' "${msgs[$rc]}" >&2
|
||||
}; readonly -f result
|
||||
|
||||
# Overloadable functions
|
||||
|
@ -905,7 +905,7 @@ if svc_pidfile is file; then
|
|||
fi
|
||||
|
||||
# Remove the stale svc pidfile
|
||||
printf 'WARNING: Removing a stale svc pidfile: %s\n' "$svc_pidfile"
|
||||
printf 'WARNING: Removing a stale svc pidfile: %s\n' "$svc_pidfile" >&2
|
||||
rm -f "$svc_pidfile"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user