From 8735eaa4825c18ce2efbee13714d3262020ab363 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 25 Aug 2014 19:58:55 +0100 Subject: [PATCH] Send error messages to stderr --- pre-receive | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pre-receive b/pre-receive index 4aea547..2575300 100755 --- a/pre-receive +++ b/pre-receive @@ -3,16 +3,16 @@ warned=0 final_ret=0 # Check for ruby binary -which ruby >/dev/null 2>&1 || echo "Ruby not found" && exit 1 +which ruby >/dev/null 2>&1 || echo "Ruby not found" 1>&2 && exit 1 # Check for Puppet binary -which puppet >/dev/null 2>&1 || echo "Puppet not found" && exit 1 +which puppet >/dev/null 2>&1 || echo "Puppet not found" 1>&2 && exit 1 # Check for puppet-lint -which puppet-lint >/dev/null 2>&1 || echo "puppet-lint not found" && exit 1 +which puppet-lint >/dev/null 2>&1 || echo "puppet-lint not found" 1>&2 && exit 1 # Check for erb -which erb >/dev/null 2>&1 || echo "erb not found" && exit 1 +which erb >/dev/null 2>&1 || echo "erb not found" 1>&2 && exit 1 tmpdir=`mktemp -d` tmpfile="$tmpdir/candidate"