mirror of https://github.com/schoebel/mars
marsadm: fix deletion of empty logfiles (ITOPWPT-237)
This commit is contained in:
parent
64849f9949
commit
a78094c799
|
@ -606,6 +606,7 @@ sub logdelete_res {
|
|||
|
||||
do {
|
||||
my $first = shift(@paths);
|
||||
last unless $first;
|
||||
print "chosen '$first' for deletion\n";
|
||||
$nr = $first;
|
||||
$nr =~ s/^.*log-([0-9]+)-.+$/$1/;
|
||||
|
|
Loading…
Reference in New Issue