aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/auto-build-common
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/auto-build/auto-build-common')
-rw-r--r--scripts/auto-build/auto-build-common9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common
index f0d75424..8280035b 100644
--- a/scripts/auto-build/auto-build-common
+++ b/scripts/auto-build/auto-build-common
@@ -65,6 +65,15 @@ print_ip_address()
fi
}
+rsync_file()
+{
+ file=$1
+ subdir_file=$2
+ # if the rsync fails, ignore and carry on
+ (rsync -a --chmod=a+r -e ssh ${file} ${RSYNC_SERVER}:/home/apt/www/auto-build/$subdir_file && \
+ echo "successfully uploaded: $(basename $file)") || \
+ true
+}
rsync_distro()
{