From 1d55b9456be327fa53b568bc9c11b89b5101d988 Mon Sep 17 00:00:00 2001 From: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com> Date: Tue, 12 Dec 2017 12:17:44 +0100 Subject: [PATCH] TSK-26: reordered skip promts so that builds from other repos don't fail --- lib/deployment/deploy.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/deployment/deploy.sh b/lib/deployment/deploy.sh index e1dbafa96..1e60efab2 100755 --- a/lib/deployment/deploy.sh +++ b/lib/deployment/deploy.sh @@ -110,10 +110,6 @@ function main { helpAndExit 1 fi - if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then - echo "you are not travis or travis does not have the correct encryption key and iv" >&2 - exit 1 - fi if [[ "$TRAVIS_REPO_SLUG" != "$reqRepo" ]]; then echo "Skipping release to sonatype because this repo's name does not match with: $reqRepo" @@ -125,6 +121,11 @@ function main { exit 0 fi + if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then + echo "you are not travis or travis does not have the correct encryption key and iv" >&2 + exit 1 + fi + if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then local parent_dir="$1" local profile="release"