From 8f635f573dbb465a24d8acc83472a7b40f75fe3e Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 26 May 2018 12:51:03 +0200 Subject: [PATCH] fix race condition for getting the godoc up The godoc server can be reachable, but without content (throwing 404s). This prevented wget from scraping. curl -f throws exit code != 0 for http status code != 200. --- gendoc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gendoc.sh b/gendoc.sh index d343788..2fff158 100755 --- a/gendoc.sh +++ b/gendoc.sh @@ -9,7 +9,7 @@ GOPATH=$(pwd):$(pwd)/vendor godoc -http=localhost:6060 & DOC_PID=$! # Wait for the server to init -until curl -s "http://localhost:6060" > /dev/null +until curl -fs "http://localhost:6060/pkg/github.com/matrix-org/go-neb/" > /dev/null do # no-op :