We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdbe9c6 commit 0fed25cCopy full SHA for 0fed25c
scripts/pinned_browsers.py
@@ -1,5 +1,6 @@
1
#!/usr/bin/env python
2
3
+import argparse
4
import hashlib
5
import json
6
import os
@@ -26,7 +27,11 @@ def calculate_hash(url):
26
27
28
29
def get_chrome_milestone():
- 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
+
35
r = http.request(
36
"GET", f"https://chromiumdash.appspot.com/fetch_releases?channel={channel}&num=1&platform=Mac,Linux"
37
)
0 commit comments