From e0985eb2752d577e6f61910e118588ec3078e83e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 12 Nov 2013 12:15:28 +0100 Subject: [PATCH] Default to el6 build if the current branch is named sme9 --- submit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submit b/submit index 5d2367b..93eaba4 100755 --- a/submit +++ b/submit @@ -8,7 +8,9 @@ SERVER=build.firewall-services.com BRANCH=$(git branch | grep '*' | cut -d' ' -f2) DIST=$1 -if [ -z $DIST ]; then +if [[ -z $DIST && "$BRANCH" == "sme9" ]]; then + DIST="el6" +elif [ -z $DIST ]; then DIST="el5" fi