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 5f2f8e5 commit 4929bcdCopy full SHA for 4929bcd
scripts/update_multitool_binaries.py
@@ -37,12 +37,8 @@ def run(lockfile_path):
37
data = json.load(f)
38
39
for tool in [tool for tool in data if tool != "$schema"]:
40
- version = re.search(f"download/(.*?)/{tool}", data[tool]["binaries"][0]["url"])[
41
- 1
42
- ]
43
- match = re.search(
44
- f"github.com/(.*?)/releases", data[tool]["binaries"][0]["url"]
45
- )
+ version = re.search(f"download/(.*?)/{tool}", data[tool]["binaries"][0]["url"])[1]
+ match = re.search("github.com/(.*?)/releases", data[tool]["binaries"][0]["url"])
46
if match:
47
user_repo = match[1]
48
else:
0 commit comments