diff options
author | 2020-04-30 15:56:36 -0700 | |
---|---|---|
committer | 2020-04-30 15:56:36 -0700 | |
commit | ea8162cb6dde42c2c827bea7c19d7f2eee9d59fd (patch) | |
tree | c43c7a7d71b94228c2675a7b579fd3853eed2db4 | |
parent | probe-mirmon: fix typo (diff) | |
download | gentoo-mirrorstats-ea8162cb6dde42c2c827bea7c19d7f2eee9d59fd.tar.gz gentoo-mirrorstats-ea8162cb6dde42c2c827bea7c19d7f2eee9d59fd.tar.bz2 gentoo-mirrorstats-ea8162cb6dde42c2c827bea7c19d7f2eee9d59fd.zip |
probe-mirmon: improve capture usage
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | probe-mirmon | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/probe-mirmon b/probe-mirmon index cd97274..b0c3413 100755 --- a/probe-mirmon +++ b/probe-mirmon @@ -83,9 +83,8 @@ sub handle_rsync { $file =~ s/\W/_/g; # translate all non-letters to _ # https://stackoverflow.com/a/6331618/1583179 - my $ret; - my ($stdout, $stderr) = capture { - $ret = system '/usr/bin/rsync', qw( -q --no-motd --timeout ), $timeout, $url, "$dir/$file"; + my ($stdout, $stderr, $ret) = capture { + system '/usr/bin/rsync', qw( -q --no-motd --timeout ), $timeout, $url, "$dir/$file"; }; if ($ret!=0) { #warn "rsync failed, exit code $fail, $! $? $@\n"; |