Report sensible error messages

This commit is contained in:
2014-08-25 19:53:51 +01:00
parent a5eeae2fb5
commit ed00671fa1

View File

@@ -3,16 +3,16 @@ warned=0
final_ret=0
# Check for ruby binary
which ruby >/dev/null 2>&1 || exit 1
which ruby >/dev/null 2>&1 || echo "Ruby not found" && exit 1
# Check for Puppet binary
which puppet >/dev/null 2>&1 || exit 1
which puppet >/dev/null 2>&1 || echo "Puppet not found" && exit 1
# Check for puppet-lint
which puppet-lint >/dev/null 2>&1 || exit 1
which puppet-lint >/dev/null 2>&1 || echo "puppet-lint not found" && exit 1
# Check for erb
which erb >/dev/null 2>&1 || exit 1
which erb >/dev/null 2>&1 || echo "erb not found" && exit 1
tmpdir=`mktemp -d`
tmpfile="$tmpdir/candidate"