diff --git a/buildroot/share/git/mfdoc b/buildroot/share/git/mfdoc index dde571dd04..4b62fa8b3c 100755 --- a/buildroot/share/git/mfdoc +++ b/buildroot/share/git/mfdoc @@ -29,7 +29,10 @@ opensite() { echo "Previewing MarlinDocumentation..." -# wait to open the url for about 8s -( sleep 45; opensite ) & - -bundle exec jekyll serve --watch --incremental +bundle exec jekyll serve --watch --incremental | { + while IFS= read -r line + do + [[ $line =~ "Server running" ]] && opensite + echo "$line" + done +}