From ac647e290d1e483b67fb7860ac81d553863f69ee Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 7 Sep 2016 05:17:55 +0200 Subject: make sure that the upload command succeeds Change-Id: I18988f949082763a06d6d44175e977b8c6c37cdd --- bin/update/upload_builds.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/update') 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]) -- cgit