mirror of https://github.com/jimsalterjrs/sanoid
added CR/LF to --monitor-health output
This commit is contained in:
parent
efa949b14b
commit
201a3c2e32
|
|
@ -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
|
||||
|
|
|
|||
4
sanoid
4
sanoid
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue