ソースを参照

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,7 +110,7 @@ git reset --hard
110 110
 git clean -d -f
111 111
 
112 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 114
 rsync -av ${TMPFOLDER}/ ./
115 115
 
116 116
 # Commit and push the new live site directly

読み込み中…
キャンセル
保存