summaryrefslogtreecommitdiff
path: root/scripts/gh-get.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gh-get.py')
-rw-r--r--scripts/gh-get.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gh-get.py b/scripts/gh-get.py
index 9d9693f..bf95d97 100644
--- a/scripts/gh-get.py
+++ b/scripts/gh-get.py
@@ -14,9 +14,9 @@ draft = [r for r in gh('releases') if r['draft']][0]
for a in draft['assets']:
if filter == None or filter in a['name']:
print('Downloading ' + a['name'])
- b = gh('releases/assets/%s' % a['id'],
+ b = gh('releases/assets/%s?access_token=%s' % (a['id'], tok),
['-L', '-H', 'Accept: application/octet-stream'],
- parse=False, quiet=False)
+ parse=False, quiet=False, auth=False)
f = open(a['name'], 'w')
f.write(b)
f.close()