summaryrefslogtreecommitdiff
path: root/bin/update
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-07 05:17:55 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:23 +0200
commitac647e290d1e483b67fb7860ac81d553863f69ee (patch)
tree8fb9f92016b5271a99705ef73211b5ceac093123 /bin/update
parentf66232738c8afb2331a29df3934c0eecc296d995 (diff)
make sure that the upload command succeeds
Change-Id: I18988f949082763a06d6d44175e977b8c6c37cdd
Diffstat (limited to 'bin/update')
-rwxr-xr-xbin/update/upload_builds.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/update/upload_builds.py b/bin/update/upload_builds.py
index 20d683d02ace..e80acb19585c 100755
--- a/bin/update/upload_builds.py
+++ b/bin/update/upload_builds.py
@@ -20,7 +20,9 @@ def main():
target_url, target_dir = upload_url.split(':')
- subprocess.call(['ssh', target_url, "'mkdir -p %s'"%(target_dir)])
+ command = "ssh %s 'mkdir -p %s'"%(target_url, target_dir)
+ print(command)
+ subprocess.call(command, shell=True)
for file in os.listdir(update_dir):
if file.endswith('.mar'):
subprocess.call(['scp', os.path.join(update_dir, file), upload_url])