Pārlūkot izejas kodu

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

Scott Lahteine 5 gadus atpakaļ
vecāks
revīzija
8ab1c16ebd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      buildroot/share/git/mfpub

+ 1
- 1
buildroot/share/git/mfpub Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt