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.
pull/231/head
lub 7 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=$! DOC_PID=$!
# Wait for the server to init # 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 do
# no-op # no-op
: :

Loading…
Cancel
Save