added CR/LF to --monitor-health output

This commit is contained in:
root 2014-11-24 10:00:19 -05:00
parent efa949b14b
commit 201a3c2e32
3 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
1.0.9 added CR/LF after --check-health message output to make CLI usage cleaner looking
1.0.8 added --version checking in sanoid and syncoid
1.0.7 got rid of unnecessary sudo commands in sanoid's --monitor-health

View File

@ -1 +1 @@
1.0.8
1.0.9

4
sanoid
View File

@ -4,7 +4,7 @@
# from http://www.gnu.org/licenses/gpl-3.0.html on 2014-11-17. A copy should also be available in this
# project's Git repository at https://github.com/jimsalterjrs/sanoid/blob/master/LICENSE.
my $version = '1.0.8';
my $version = '1.0.9';
use strict;
use Config::IniFiles; # read samba-style conf file
@ -75,7 +75,7 @@ sub monitor_health() {
my @warninglevels = ('','*** WARNING *** ','*** CRITICAL *** ');
my $message = $warninglevels[$errlevel] . join (', ',@messages);
print $message;
print "$message\n";
exit $errlevel;
} # end monitor_health()