Skip to content

Commit

Permalink
Merge pull request Consensys#177 from lucassaldanha/master
Browse files Browse the repository at this point in the history
Fix Bintray upload URL parameters
  • Loading branch information
lucassaldanha authored Jul 24, 2018
2 parents 4e39081 + ca35bb4 commit f79833a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload-to-bintray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DIR_PATH=${8} # Path on server that the file will be uploaded to (e.g. dir/)

echo "Uploading file ${FILE} to repository ${REPO}\n"

RESPONSE=$(curl -T ${FILE} -u${BT_USER}:${BT_KEY} https://api.bintray.com/content/${ORG}/${REPO}/${PACKAGE}/${VERSION}/${DIR_PATH}?publish=0&override=1)
RESPONSE=$(curl -T ${FILE} -u${BT_USER}:${BT_KEY} -G https://api.bintray.com/content/${ORG}/${REPO}/${PACKAGE}/${VERSION}/${DIR_PATH} -d override=1)

if [ "${RESPONSE}" != '{"message":"success"}' ]; then
echo "Error uploading file to Bintray: ${RESPONSE}/n"
Expand Down

0 comments on commit f79833a

Please sign in to comment.