ssoma: --cron implies --quiet
authorEric Wong <normalperson@yhbt.net>
Mon, 21 Apr 2014 09:42:14 +0000 (09:42 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 21 Apr 2014 09:42:14 +0000 (09:42 +0000)
cronjobs should be quiet, since cron default to emailing the user
on output.

ssoma

diff --git a/ssoma b/ssoma
index dabd511d9c9bd2ecc456a8e3eebb0dc2b53bc6df..ef99a008751a1cb7fbc0a1a401158a53c2471e77 100755 (executable)
--- a/ssoma
+++ b/ssoma
@@ -194,6 +194,7 @@ sub foreach_list {
 sub cmd_sync {
        my ($listname, @targets) = @_;
        if ($opts{cron}) {
+               $opts{quiet} = 1;
                sleep(rand(CRON_RAND_DELAY));
        }
        if (defined $listname) {