TSK-26: reordered skip promts so that builds from other repos don't fail

This commit is contained in:
Mustapha Zorgati 2017-12-12 12:17:44 +01:00 committed by Holger Hagen
parent 4a63e6c474
commit 1d55b9456b
1 changed files with 5 additions and 4 deletions

View File

@ -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"