ソースを参照

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 *