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() {
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user