summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-04-28 22:41:28 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2020-04-28 22:41:28 -0700
commita0841c139bd7830a56ad9e0dfb215148711a68c7 (patch)
tree2e908389d1b8fd78ce79193ecc2004eb6f85054a
parentrsync: fix URL (diff)
downloadgentoo-mirrorstats-a0841c139bd7830a56ad9e0dfb215148711a68c7.tar.gz
gentoo-mirrorstats-a0841c139bd7830a56ad9e0dfb215148711a68c7.tar.bz2
gentoo-mirrorstats-a0841c139bd7830a56ad9e0dfb215148711a68c7.zip
probe-mirmon: be quiet if rsync site is broken
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xprobe-mirmon4
1 files changed, 2 insertions, 2 deletions
diff --git a/probe-mirmon b/probe-mirmon
index ddd8546..8dce832 100755
--- a/probe-mirmon
+++ b/probe-mirmon
@@ -48,8 +48,8 @@ sub handle_rsync {
$file =~ s/\W/_/g; # translate all non-letters to _
- if ( my $fail = system '/usr/bin/rsync', qw( --no-motd --timeout ), $timeout, $url, "$dir/$file" ) {
- warn "rsync failed, exit code $fail, $! $? $@\n";
+ if ( my $fail = system '/usr/bin/rsync', qw( -q --no-motd --timeout ), $timeout, $url, "$dir/$file" ) {
+ #warn "rsync failed, exit code $fail, $! $? $@\n";
exit $fail;
}