Skip to content

Commit 77e0a97

Browse files
authored
Exclude macOS and Windows packages
1 parent ae57bb2 commit 77e0a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/scripts/install_pr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ import json,sys, re
183183
data = json.load(sys.stdin)
184184
185185
for i in data['artifacts']:
186-
if re.match('.*{}$'.format(re.escape('$PACKAGE')), i['name']):
186+
if re.match('^(?!macOS|windows).*{}$'.format(re.escape('$PACKAGE')), i['name'], re.IGNORECASE):
187187
print(i['name'])
188188
break
189189
""" 2>/dev/null)
@@ -193,7 +193,7 @@ import json,sys, re
193193
data = json.load(sys.stdin)
194194
195195
for i in data['artifacts']:
196-
if re.match('.*{}$'.format(re.escape('$PACKAGE')), i['name']):
196+
if re.match('^(?!macOS|windows).*{}$'.format(re.escape('$PACKAGE')), i['name'], re.IGNORECASE):
197197
print(i['archive_download_url'])
198198
break
199199
""" 2>/dev/null)

0 commit comments

Comments
 (0)