Don't show already added tables if the number is zero.
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 3 Sep 2011 13:17:07 +0000 (09:17 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 3 Sep 2011 13:17:07 +0000 (09:17 -0400)
bucardo

diff --git a/bucardo b/bucardo
index 2bf23a258587d470f54953424dae8cafcca266b7..958f5b7ccbb0db095a45fcaf2f0b6432a1270372 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -6152,7 +6152,12 @@ sub add_all_goats {
         }
     }
 
-    return "New ${type}s added: $count{added}\nAlready added: $count{seenit}\n";
+    my $msg = "New ${type}s added: $count{added}\n";
+    if ($count{seenit}) {
+        $msg .= "Already added: $count{seenit}\n";
+    }
+
+    return $msg;
 
 } ## end of add_all_goats