These should go into stderr

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-03-09 07:23:57 +03:00
parent 7afeb29bf2
commit a4bd260bfe

6
ssm
View File

@ -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