mirror of
https://github.com/RustyRaptor/AppImages.git
synced 2026-12-03 15:35:23 -07:00
if [ "${BINTRAY_API_KEY}" == "" ] ; then
This commit is contained in:
1 parent
709f118ab3
commit
6fe246abe7
1 file changed
+1
-6
+1
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user