Commit 7fc98119 by Dave Syer

Use TRAVIS_BRANCH if available

parent b3ca7430
...@@ -14,7 +14,8 @@ fi ...@@ -14,7 +14,8 @@ fi
# Find name of current branch # Find name of current branch
################################################################### ###################################################################
branch=`git rev-parse --abbrev-ref HEAD` branch=$TRAVIS_BRANCH
[ "$branch" == "" ] && branch=`git rev-parse --abbrev-ref HEAD`
target=. target=.
if [ "$branch" != "master" ]; then target=./$branch; mkdir -p $target; fi if [ "$branch" != "master" ]; then target=./$branch; mkdir -p $target; fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment