From: Dobrica Pavlinusic Date: Wed, 26 Jan 2011 22:25:36 +0000 (+0000) Subject: support no dumps with -m 0 X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=commitdiff_plain;h=21345db381830a90f51e4d46bae6e654425a13f3;hp=0a722372e15d8c4b8c8570ce80bdc03a8cb76d57 support no dumps with -m 0 --- diff --git a/bin/BackupPC_ASA_PostDump_SearchUpdate b/bin/BackupPC_ASA_PostDump_SearchUpdate index 3c065a0..5cff61f 100755 --- a/bin/BackupPC_ASA_PostDump_SearchUpdate +++ b/bin/BackupPC_ASA_PostDump_SearchUpdate @@ -513,7 +513,7 @@ foreach my $host_key (@hosts) { foreach my $backup (@backups) { $inc_nr++; - last if ($opt{m} && $inc_nr > $opt{m}); + last if (defined $opt{m} && $inc_nr > $opt{m}); my $backupNum = $backup->{'num'}; my @backupShares = ();