Skip to content

Commit

Permalink
Fixed Github uploading name
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood committed Jan 22, 2017
1 parent 0652ad7 commit 0e2b359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ with [enigmail and thunderbird](https://wiki.archlinux.org/index.php/thunderbird

## Version History
```
1.1.2 (22.01.2017)
* Fixed Github uploading name
1.1.1 (17.01.2017)
* Verify existing signatures
* Added upload to Github functionality
Expand Down
4 changes: 2 additions & 2 deletions gpgit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ if git config --local remote.origin.url | grep 'github.com' -q; then
fi

# Upload signature
if ! RESULT=$(curl -s "https://uploads.github.com/repos/${config[USERNAME]}/${config[PROJECT]}/releases/${RELEASE_ID}/assets?name=${config[FILE]}.sig" \
if ! RESULT=$(curl -s "https://uploads.github.com/repos/${config[USERNAME]}/${config[PROJECT]}/releases/${RELEASE_ID}/assets?name=${config[COMPRESSED_FILE]}.sig" \
-H "Content-Type: application/pgp-signature" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${TOKEN}" \
Expand All @@ -622,7 +622,7 @@ if git config --local remote.origin.url | grep 'github.com' -q; then
fi

# Upload message digest
if ! RESULT=$(curl -s "https://uploads.github.com/repos/${config[USERNAME]}/${config[PROJECT]}/releases/${RELEASE_ID}/assets?name=${config[FILE]}.${config[HASH]}" \
if ! RESULT=$(curl -s "https://uploads.github.com/repos/${config[USERNAME]}/${config[PROJECT]}/releases/${RELEASE_ID}/assets?name=${config[COMPRESSED_FILE]}.${config[HASH]}" \
-H "Content-Type: text/sha512" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${TOKEN}" \
Expand Down

0 comments on commit 0e2b359

Please sign in to comment.