From 719a8e77a659e00b6f26ae6b88a66db87ecc67de Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 2 Feb 2015 08:59:48 -0500 Subject: [PATCH] Fix error to stderr --- buildhosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildhosts b/buildhosts index 7521acd..939b33f 100755 --- a/buildhosts +++ b/buildhosts @@ -69,9 +69,9 @@ function buildhosts_help(){ # Error function: display error then exit unsuccessfully function buildhosts_error() { - printf "$c_heading $c_fail%s$c_fail %s$c_reset\n" ' ! ERROR:' "$1" 2>&1 + printf "$c_heading $c_fail%s$c_fail %s$c_reset\n" ' ! ERROR:' "$1" >&2 [[ "$2" -eq 1 ]] && { - printf '\n' + printf '\n' >&2 buildhosts_help } exit 1