Fixed on master for jenkins buildslave

This commit is contained in:
Hugo Trippaers 2014-02-19 16:21:43 +01:00
parent fefddc0624
commit 5e717cbb89

View File

@ -26,7 +26,14 @@ else
fi
build_date=`date +%Y-%m-%d`
branch=`git status | grep '# On branch' | awk '{print $4}'`
# set fixed or leave empty to use git to determine
branch=master
if [ -z "$branch" ] ; then
branch=`git status | grep '# On branch' | awk '{print $4}'`
fi
if [ -z "$branch" ] ; then
branch=unknown
fi