From: Holger Levsen Date: Thu, 25 Jul 2013 14:41:02 +0000 (+0200) Subject: add check for valid SUITE and let it default to squeeze X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=b7bea08e59a99ab5073e2216b62dda2abaaafed8;p=profitbricks%2Fjenkins-build-scripts.git add check for valid SUITE and let it default to squeeze --- diff --git a/maven_post_build_debian_wrapper.sh b/maven_post_build_debian_wrapper.sh index 8b901d7..b0bf657 100755 --- a/maven_post_build_debian_wrapper.sh +++ b/maven_post_build_debian_wrapper.sh @@ -10,6 +10,10 @@ # SUITE=$1 # this has to be either squeeze or wheezy currently +if [[ -z "${SUITE}" ]] ; then + SUITE="squeeze" + echo "Warning: SUITE not definied, defaulting to \"squeeze\"." +fi VERSION=$(mvn -B -N help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\[") FEATURE_BRANCHES=("feature/" "poc/" "integration") REPO=pb-${SUITE}