浏览代码

fix detecting the master branch

Julius Pfrommer 8 年之前
父节点
当前提交
370a4cca37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/travis_linux_script.sh

+ 1 - 1
tools/travis_linux_script.sh

@@ -63,7 +63,7 @@ make
 
 # push updated doc
 BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
-if [[ "$BRANCH" = "master" ]]; then
+if [[ ${BRANCH} == "master" ]]; then
     cd .. && rm build -rf && mkdir -p build && cd build
     cd build
     rm -rf *