Skip to content

Commit

Permalink
Fix incorrect log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Nov 12, 2019
1 parent 08b388a commit 1bdb860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/publish-deb.sh
Expand Up @@ -47,7 +47,7 @@ bintrayCreateVersion () {
bintrayUseGitHubReleaseNotes () {
URL="https://api.bintray.com/packages/$SUBJECT/$REPO/$PACKAGE/versions/$VERSION"
BODY="{ \"vcs_tag\": \"v0.0.33\", \"github_use_tag_release_notes\": \"true\" }"
echo "Creating package version $VERSION"
echo "Using release notes from GitHub"
RESPONSE_CODE=$(curl -X PATCH -d "$BODY" -H "Content-Type: application/json" -u$BINTRAY_USER:$BINTRAY_API_KEY $URL -s -w "%{http_code}" -o /dev/null);
if [[ "$(echo $RESPONSE_CODE | head -c2)" != "20" ]]; then
echo "Unable to create package version, HTTP response code: $RESPONSE_CODE"
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-rpm.sh
Expand Up @@ -41,7 +41,7 @@ bintrayCreateVersion () {
bintrayUseGitHubReleaseNotes () {
URL="https://api.bintray.com/packages/$SUBJECT/$REPO/$PACKAGE/versions/$VERSION"
BODY="{ \"vcs_tag\": \"v0.0.33\", \"github_use_tag_release_notes\": \"true\" }"
echo "Creating package version $VERSION"
echo "Using release notes from GitHub"
RESPONSE_CODE=$(curl -X PATCH -d "$BODY" -H "Content-Type: application/json" -u$BINTRAY_USER:$BINTRAY_API_KEY $URL -s -w "%{http_code}" -o /dev/null);
if [[ "$(echo $RESPONSE_CODE | head -c2)" != "20" ]]; then
echo "Unable to create package version, HTTP response code: $RESPONSE_CODE"
Expand Down

0 comments on commit 1bdb860

Please sign in to comment.