From a4bd260bfe2c5cca398fe1a43a33b55d60d30d47 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 9 Mar 2018 07:23:57 +0300 Subject: [PATCH] These should go into stderr Signed-off-by: fbt --- ssm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssm b/ssm index 438c880..1a55e98 100755 --- a/ssm +++ b/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