From 997e7bd96a05b104efa370aa37b5e2095cf15c39 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 20 May 2016 18:42:00 -0700 Subject: dummy --- .drone/authenv.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '.drone/authenv.sh') diff --git a/.drone/authenv.sh b/.drone/authenv.sh index b4142dd..4738d5c 100755 --- a/.drone/authenv.sh +++ b/.drone/authenv.sh @@ -7,9 +7,15 @@ set -e echo "Preparing authenticated environment" -echo "ssb: $GPG_SSB" -if [ -z "$GPG_SSB" ] || [ -z "$BINTRAY_KEY" ]; then - echo "Secrets not defined!" >&2 +echo $$ + +if [ -z "CI" ]; then + echo "This script should be run in a CI environment. Aborting." + exit 1 +fi + +if [ -z "$SECURE" ] || [ "$SECURE" = "\$\$SECURE" ]; then + echo "Secrets not defined. Aborting." >&2 exit 1 fi -- cgit v1.2.3