Skip to content

Commit 1d55b94

Browse files
mustaphazorgatiholgerhagen
authored andcommitted
TSK-26: reordered skip promts so that builds from other repos don't fail
1 parent 4a63e6c commit 1d55b94

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/deployment/deploy.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ function main {
110110
helpAndExit 1
111111
fi
112112

113-
if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then
114-
echo "you are not travis or travis does not have the correct encryption key and iv" >&2
115-
exit 1
116-
fi
117113

118114
if [[ "$TRAVIS_REPO_SLUG" != "$reqRepo" ]]; then
119115
echo "Skipping release to sonatype because this repo's name does not match with: $reqRepo"
@@ -125,6 +121,11 @@ function main {
125121
exit 0
126122
fi
127123

124+
if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then
125+
echo "you are not travis or travis does not have the correct encryption key and iv" >&2
126+
exit 1
127+
fi
128+
128129
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
129130
local parent_dir="$1"
130131
local profile="release"

0 commit comments

Comments
 (0)