From 0eae9c3f895ddf187e3807aa76ae3400379a2ad1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 10 Sep 2018 09:42:28 +0200 Subject: lib/common-functions: failsafe_rsync() new --- bin/db-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 367fb36..9e5a59b 100755 --- a/bin/db-update +++ b/bin/db-update @@ -356,7 +356,7 @@ for source_stability in \ while read -r arch repo; do mkdir -p "${tmp_dir}/dbs/${arch}/${repo}" # shellcheck disable=SC2086 - ${master_mirror_rsync_command} \ + failsafe_rsync \ "${master_mirror_rsync_directory}/${arch}/${repo}/${repo}.db."* \ "${master_mirror_rsync_directory}/${arch}/${repo}/${repo}.files."* \ "${tmp_dir}/dbs/${arch}/${repo}/" @@ -456,7 +456,7 @@ for source_stability in \ "${tmp_dir}/dbs/${arch}/${repo}/${repo}."*".tar.gz" \ "${tmp_dir}/dbs/${arch}/${repo}/${repo}."*".tar.gz.old" # shellcheck disable=SC2086 - ${master_mirror_rsync_command} \ + failsafe_rsync \ "${tmp_dir}/dbs/${arch}/${repo}/${repo}.db."* \ "${tmp_dir}/dbs/${arch}/${repo}/${repo}.files."* \ "${master_mirror_rsync_directory}/${arch}/${repo}/" -- cgit v1.2.3