diff options
-rwxr-xr-x[-rw-r--r--] | github-upload.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/github-upload.sh b/github-upload.sh index 2a5f6534d..51000ae1d 100644..100755 --- a/github-upload.sh +++ b/github-upload.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/bin/bash VERSION=$1 FULLNAME=pandoc-$VERSION @@ -8,11 +8,11 @@ curl -H "Authorization: token $TOKEN" \ -H "Accept: application/vnd.github.manifold-preview" \ -H "Content-Type: application/x-apple-diskimage" \ --data-binary @$FULLNAME.dmg \ - "https://uploads.github.com/repos/jgm/pandoc/releases/$FULLNAME/assets?name=$FULLNAME.dmg" + "https://uploads.github.com/repos/jgm/pandoc/releases/$VERSION/assets?name=$FULLNAME.dmg" curl -H "Authorization: token $TOKEN" \ -H "Accept: application/vnd.github.manifold-preview" \ -H "Content-Type: application/x-msi" \ --data-binary @$FULLNAME.msi \ - "https://uploads.github.com/repos/jgm/pandoc/releases/$FULLNAME/assets?name=$FULLNAME.msi" + "https://uploads.github.com/repos/jgm/pandoc/releases/$VERSION/assets?name=$FULLNAME.msi" |