소스 검색

Break out of 'mfpub' if 'gh-pages' checkout fails

Scott Lahteine 5 년 전
부모
커밋
8ab1c16ebd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      buildroot/share/git/mfpub

+ 1
- 1
buildroot/share/git/mfpub 파일 보기

110
 git clean -d -f
110
 git clean -d -f
111
 
111
 
112
 # Copy built-site into the gh-pages branch
112
 # Copy built-site into the gh-pages branch
113
-git checkout gh-pages
113
+git checkout gh-pages || { echo "Something went wrong!"; exit 1; }
114
 rsync -av ${TMPFOLDER}/ ./
114
 rsync -av ${TMPFOLDER}/ ./
115
 
115
 
116
 # Commit and push the new live site directly
116
 # Commit and push the new live site directly

Loading…
취소
저장