summaryrefslogtreecommitdiff
path: root/github-upload.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-12-07 12:59:08 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-12-07 12:59:08 -0800
commit4f64a4bc3bbd7e976635bcf5752633895a5aa3d8 (patch)
treec129e0255fd184c94438fb63ca65f3087c7da7bf /github-upload.sh
parent06d1ec828a0c6ef5d8549b14c7b2101a34606ce0 (diff)
More changes to github-upload.sh. Still doesn't work, though.
Diffstat (limited to 'github-upload.sh')
-rwxr-xr-x[-rw-r--r--]github-upload.sh6
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"