From 21345db381830a90f51e4d46bae6e654425a13f3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 26 Jan 2011 22:25:36 +0000 Subject: [PATCH] support no dumps with -m 0 --- bin/BackupPC_ASA_PostDump_SearchUpdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = (); -- 2.20.1