From e4085cb9788076855ada1c27dd2a0a3355e7a79b Mon Sep 17 00:00:00 2001 From: Mapzen Developer Date: Tue, 2 May 2017 17:21:53 -0600 Subject: [PATCH] fix release script --- scripts/release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 277e502b..cc9b6630 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -3,13 +3,13 @@ # runs the gradle release plugin # -if ([ -n ${RELEASE_VERSION_NUMBER} ] && [ -n ${NEW_VERSION_NUMBER} ]); then +if ([ -z $RELEASE_VERSION_NUMBER ] || [ -z $NEW_VERSION_NUMBER ]); then + echo "RELEASE_VERSION_NUMBER or NEW_VERSION_NUMBER not specified, skipping release." +else echo "Releasing" git config --global user.email "accounts+mapnerd@mapzen.com" git config --global user.name "Mapzen Developer" ./gradlew release -Prelease.useAutomaticVersion=true \ -Prelease.releaseVersion=$RELEASE_VERSION_NUMBER \ -Prelease.newVersion=$NEW_VERSION_NUMBER -else - echo "RELEASE_VERSION_NUMBER & NEW_VERSION_NUMBER not specified, skipping release." fi