From 4f64a4bc3bbd7e976635bcf5752633895a5aa3d8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 7 Dec 2013 12:59:08 -0800 Subject: More changes to github-upload.sh. Still doesn't work, though. --- github-upload.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 github-upload.sh (limited to 'github-upload.sh') diff --git a/github-upload.sh b/github-upload.sh old mode 100644 new mode 100755 index 2a5f6534d..51000ae1d --- 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" -- cgit v1.2.3