Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 99b752e

Browse files
authored
Fix tools/luci/build.py script (#26895)
1 parent 9825337 commit 99b752e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/luci/build.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def Main():
7171
help='Print what would be done, but do nothing.')
7272
args = parser.parse_args()
7373

74-
if args.help:
74+
if 'help' in vars(args) and args.help:
7575
parser.print_help()
7676
return 0
7777

@@ -96,7 +96,7 @@ def Main():
9696
if auth_result.returncode != 0:
9797
print('Auth failed:\nstdout:\n%s\nstderr:\n%s' % (auth_result.stdout, auth_result.stderr))
9898
return 1
99-
auth_token = auth_result.stdout
99+
auth_token = auth_result.stdout.rstrip()
100100

101101
for builder in builders:
102102
if args.force_upload:
@@ -107,8 +107,7 @@ def Main():
107107
curl_command = [
108108
'curl',
109109
'http://flutter-dashboard.appspot.com/api/reset-prod-task',
110-
'-d',
111-
params,
110+
"-d %s" % params,
112111
'-H',
113112
'X-Flutter-IdToken: %s' % auth_token,
114113
]

0 commit comments

Comments
 (0)