diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-11-18 01:37:06 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-11-18 01:37:06 +0200 |
commit | 89d94aaa111d42610491de776f302773ee5ef665 (patch) | |
tree | 120cb8396fa8a7cd72fa1f569b51f97508389a47 /charts.d/mysql.chart.sh | |
parent | fb026dcbb4582a1f1494e02e74be2998637dbc82 (diff) |
exit 1 to return 1 in mysql
Diffstat (limited to 'charts.d/mysql.chart.sh')
-rwxr-xr-x | charts.d/mysql.chart.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/charts.d/mysql.chart.sh b/charts.d/mysql.chart.sh index 9390f972fe..555c9b54ac 100755 --- a/charts.d/mysql.chart.sh +++ b/charts.d/mysql.chart.sh @@ -15,9 +15,9 @@ mysql_get_stats() { } mysql_check() { - require_cmd mysql || exit 1 - require_cmd egrep || exit 1 - require_cmd sed || exit 1 + require_cmd mysql || return 1 + require_cmd egrep || return 1 + require_cmd sed || return 1 # check once if the url works local x="$(mysql_get_stats | grep "^Connections[[:space:]]")" |