diff options
Diffstat (limited to '.drone')
-rwxr-xr-x | .drone/authenv.sh | 12 |
1 files changed, 9 insertions, 3 deletions
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 |