mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Merge pull request #813 from PowerShell/andschwa/download-v0.3.0
Update download.sh to get v0.3.0 deb asset
This commit is contained in:
commit
d621b44034
1 file changed
+2
-2
+2
-2
@@ -3,12 +3,12 @@
|
||||
[[ -n $GITHUB_TOKEN ]] || { echo >&2 "GITHUB_TOKEN variable is undefined, please provide token"; exit 1; }
|
||||
|
||||
# Authorizes with read-only access to GitHub API
|
||||
# Retrieves URL of v0.2.0 release asset
|
||||
# Retrieves URL of v0.3.0 release asset
|
||||
# Downloads asset to powershell.deb
|
||||
curl -s -i \
|
||||
-H "Authorization: token $GITHUB_TOKEN " \
|
||||
-H 'Accept: application/octet-stream' \
|
||||
'https://api.github.com/repos/PowerShell/PowerShell/releases/assets/1398546' |
|
||||
'https://api.github.com/repos/PowerShell/PowerShell/releases/assets/1536045' |
|
||||
grep location |
|
||||
sed 's/location: //g' |
|
||||
wget -i - -O powershell.deb
|
||||
Reference in new issue
Block a user