Permalink
Browse files

Return on no mongo credentials found.

  • Loading branch information...
1 parent 71584bb commit 9d7c88a3188cc27945669d734add6741dadd8e0f @marc0der marc0der committed Dec 8, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/release-binary.sh
@@ -7,6 +7,11 @@ MONGO_USERNAME="$4"
MONGO_PASSWORD="$5"
VERSION="$BRANCH+$BUILD_NUMBER"
+if [[ -z "$MONGO_USERNAME" || -z "$MONGO_PASSWORD" ]]; then
+ echo "No mongo credentials so doing nothing..."
+ return 0
+fi
+
if [[ "$BRANCH" == 'master' ]]; then
FIELD="betaCliVersion"
else

0 comments on commit 9d7c88a

Please sign in to comment.