From bb2e7fbccdb1e5ffe22d7588d17fe37ca3fd3f91 Mon Sep 17 00:00:00 2001 From: Matt Bacchi Date: Tue, 6 Nov 2018 23:29:51 -0500 Subject: [PATCH] Fix syntax to assign variable before use --- script/upload.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/upload.py b/script/upload.py index 1cc50cfe9f06..844cf4d78233 100755 --- a/script/upload.py +++ b/script/upload.py @@ -64,10 +64,12 @@ def main(): elif PLATFORM == 'win32': if get_target_arch() == 'x64': upload_brave(repo, release, os.path.join(output_dir(), 'brave_installer.exe'), 'brave_installer-x64.exe', force=args.force) - upload_brave(repo, release, os.path.join(output_dir(), pkg), force=args.force) + for pkg in pkgs: + upload_brave(repo, release, os.path.join(output_dir(), pkg), force=args.force) else: upload_brave(repo, release, os.path.join(output_dir(), 'brave_installer.exe'), 'brave_installer-ia32.exe', force=args.force) - upload_brave(repo, release, os.path.join(output_dir(), pkg), force=args.force) + for pkg in pkgs: + upload_brave(repo, release, os.path.join(output_dir(), pkg), force=args.force) else: if get_target_arch() == 'x64': for pkg in pkgs: