if [ "${BINTRAY_API_KEY}" == "" ] ; then

This commit is contained in:
probonopd authored and GitHub committed 2017-02-27 16:48:21 +01:00
1 parent 709f118ab3
commit 6fe246abe7
1 file changed
+1 -6
+1 -6
View File
@@ -11,7 +11,7 @@ FILE="$1"
[ -f "$FILE" ] || { echo "File '$FILE' doesn't exist"; exit; }
if [ -z "$BINTRAY_API_KEY" ] ; then
if [ "${BINTRAY_API_KEY}" == "" ] ; then
echo "BINTRAY_API_KEY is missing; assuming this is a PR, uploading to transfer.sh"
curl --upload-file ./"$FILE" https://transfer.sh/$(basename "$FILE")
exit 0
@@ -63,11 +63,6 @@ if [ ! -z "$TRAVIS_PULL_REQUEST" ] ; then
fi
fi
if [ -z "$BINTRAY_API_KEY" ] ; then
echo "Environment variable \$BINTRAY_API_KEY missing"
exit 1
fi
CURL="curl -u${BINTRAY_USER}:${BINTRAY_API_KEY} -H Accept:application/json -w \n"
set -x # Be verbose from here on