diff options
author | Jorge Romero <Jorge.Romero@openbondx.com> | 2016-05-06 15:57:24 -0400 |
---|---|---|
committer | Jorge Romero <Jorge.Romero@openbondx.com> | 2016-05-06 15:57:24 -0400 |
commit | cd2dfe041e0f51eaea05c0bc566dcda2e952d189 (patch) | |
tree | c989aa2658fa1b005e50b2544208cba0cb801a7f /charts.d | |
parent | 34b3deb3322834c4e3519f46e1fe2302636d4530 (diff) |
redirect check error messages to stderr
Diffstat (limited to 'charts.d')
-rwxr-xr-x | charts.d/tomcat.chart.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/charts.d/tomcat.chart.sh b/charts.d/tomcat.chart.sh index 0e5cce8ad5..4e10a9183a 100755 --- a/charts.d/tomcat.chart.sh +++ b/charts.d/tomcat.chart.sh @@ -33,15 +33,15 @@ tomcat_check() { # check if url, username, passwords are set if [ -z "${tomcat_url}" ]; then - echo "tomcat url is unset or set to the empty string" + echo >&2 "tomcat url is unset or set to the empty string" return 1 fi if [ -z "${tomcatUser}" ]; then - echo "tomcat user is unset or set to the empty string" + echo >&2 "tomcat user is unset or set to the empty string" return 1 fi if [ -z "${tomcatPassword}" ]; then - echo "tomcat password is unset or set to the empty string" + echo >&2 "tomcat password is unset or set to the empty string" return 1 fi |