Skip to content

Commit 0fed25c

Browse files
committed
pinned browsers script needs to toggle chrome channel with args not env
1 parent cdbe9c6 commit 0fed25c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/pinned_browsers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22

3+
import argparse
34
import hashlib
45
import json
56
import os
@@ -26,7 +27,11 @@ def calculate_hash(url):
2627

2728

2829
def get_chrome_milestone():
29-
channel = os.getenv("CHROME_CHANNEL", "Stable")
30+
parser = argparse.ArgumentParser()
31+
parser.add_argument('--chrome_channel', default='Stable', help='Set the Chrome channel')
32+
args = parser.parse_args()
33+
channel = args.chrome_channel
34+
3035
r = http.request(
3136
"GET", f"https://chromiumdash.appspot.com/fetch_releases?channel={channel}&num=1&platform=Mac,Linux"
3237
)

0 commit comments

Comments
 (0)