Browse Source

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

Scott Lahteine 6 years ago
parent
commit
8ab1c16ebd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      buildroot/share/git/mfpub

+ 1
- 1
buildroot/share/git/mfpub View File

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

Loading…
Cancel
Save