summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-07-30 17:04:25 (GMT)
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-07-30 17:20:18 (GMT)
commit6e785c77ba7d7338d9541d425094e2bbf66b2275 (patch)
treed25606aacc81e53d17dae3125ba0548afde1da77 /scripts
parentf3005dd222410f0fe8a75bd3e3b161ca2ef1cbbe (diff)
downloaddefinitions-6e785c77ba7d7338d9541d425094e2bbf66b2275.tar.gz
Avoid running rsync if source file list is empty
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release-upload5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/release-upload b/scripts/release-upload
index 3563066..7503050 100755
--- a/scripts/release-upload
+++ b/scripts/release-upload
@@ -423,6 +423,9 @@ class ReleaseArtifactPublisher(object):
def rsync_files_to_server(
source_dir, source_filenames, user, host, target_dir):
+ if not source_filenames:
+ return
+
argv = [
'rsync',
'-a',
@@ -438,7 +441,7 @@ def rsync_files_to_server(
]
files_list = '\0'.join(
- filename for filename in source_filenames) + '\0'
+ filename for filename in source_filenames)
cliapp.runcmd(argv, feed_stdin=files_list, stdout=None, stderr=None)