Browse Source

Fix mfpub syntax highlighting

Scott Lahteine 5 years ago
parent
commit
afdd4803f8
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      buildroot/share/git/mfpub

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

@@ -24,14 +24,14 @@ if [[ $ORG != "MarlinFirmware" || $REPO != "MarlinDocumentation" ]]; then
24 24
   exit
25 25
 fi
26 26
 
27
-# Check out the named branch (or stay in current)
28
-git checkout $BRANCH
29
-
30 27
 if [[ $BRANCH == "gh-pages" ]]; then
31 28
   echo "Can't build from 'gh-pages.' Only the Jekyll branches (based on 'master')."
32 29
   exit
33 30
 fi
34 31
 
32
+# Check out the named branch (or stay in current)
33
+git checkout $BRANCH
34
+
35 35
 echo "Stashing any changes to files..."
36 36
 echo "Don't forget to update and push 'master'!"
37 37
 # GOJF Card
@@ -69,7 +69,7 @@ if [[ $BRANCH == "master" ]]; then
69 69
 
70 70
 else
71 71
 
72
-  if [ -z "$(git branch -vv | grep ^\* | grep \\[origin)" ]; then
72
+  if [ -z "$(git branch -vv | grep ^\* | grep \\\[origin)" ]; then
73 73
     firstpush
74 74
   else
75 75
     echo

Loading…
Cancel
Save