From b7bea08e59a99ab5073e2216b62dda2abaaafed8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 25 Jul 2013 16:41:02 +0200 Subject: [PATCH] add check for valid SUITE and let it default to squeeze --- maven_post_build_debian_wrapper.sh | 4 ++++ 1 file changed, 4 insertions(+) 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} -- 2.39.5