Use current branch as branch for plugin documentation
#!/bin/bash
if [[ "${DOCBRANCH}" == "" ]]; then
- export DOCBRANCH=develop
+ # Use the current branch if not set and if that fail use master
+ export DOCBRANCH=`git status | grep "On branch" | awk '{print $3 }'`
+ if [[ "${DOCBRANCH}" == "" ]]; then
+ export DOCBRANCH=master
+ fi
echo "Default ${DOCBRANCH} used for plugin documentation"
fi
