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
1 changed files with 3 additions and 3 deletions

6
ssm
View File

@ -119,7 +119,7 @@ var() {
die() { die() {
declare code=${1:-0} declare code=${1:-0}
[[ "$2" ]] && printf '%s\n' "$2" [[ "$2" ]] && printf '%s\n' "$2" >&2
exit "$code" exit "$code"
}; readonly -f die }; readonly -f die
@ -403,7 +403,7 @@ result() {
[[ "${msgs[$rc]}" ]] || msgs["$rc"]="Failed!" [[ "${msgs[$rc]}" ]] || msgs["$rc"]="Failed!"
printf '%s\n' "${msgs[$rc]}" printf '%s\n' "${msgs[$rc]}" >&2
}; readonly -f result }; readonly -f result
# Overloadable functions # Overloadable functions
@ -905,7 +905,7 @@ if svc_pidfile is file; then
fi fi
# Remove the stale svc pidfile # 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" rm -f "$svc_pidfile"
fi fi
fi fi