소스 검색

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 *