From c4734b947b54d29ab18cae114108ae52786b0e7c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 9 Nov 2018 21:30:20 -0600 Subject: [PATCH] Have 'mfdoc' open the local site when it's ready --- buildroot/share/git/mfdoc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/buildroot/share/git/mfdoc b/buildroot/share/git/mfdoc index dde571dd0..4b62fa8b3 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 +}