diff --git a/scripts/upload-to-bintray.sh b/scripts/upload-to-bintray.sh index 7ed5a6ae..7bfbcc24 100755 --- a/scripts/upload-to-bintray.sh +++ b/scripts/upload-to-bintray.sh @@ -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"