Selaa lähdekoodia

Have 'mfdoc' open the local site when it's ready

Scott Lahteine 6 vuotta sitten
vanhempi
commit
c4734b947b
1 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 7
    4
      buildroot/share/git/mfdoc

+ 7
- 4
buildroot/share/git/mfdoc Näytä tiedosto

@@ -29,7 +29,10 @@ opensite() {
29 29
 
30 30
 echo "Previewing MarlinDocumentation..."
31 31
 
32
-# wait to open the url for about 8s
33
-( sleep 45; opensite ) &
34
-
35
-bundle exec jekyll serve --watch --incremental
32
+bundle exec jekyll serve --watch --incremental | {
33
+  while IFS= read -r line
34
+  do
35
+    [[ $line =~ "Server running" ]] && opensite
36
+    echo "$line"
37
+  done
38
+}

Loading…
Peruuta
Tallenna