Browse Source

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.
forest-feature-rebase
lub 4 years ago
parent
commit
8f635f573d
  1. 2
      gendoc.sh

2
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
:

Loading…
Cancel
Save