Skip to content

Commit e00fb86

Browse files
committed
Fix issue in "fetch-spec.sh" script.
1 parent 2b3469b commit e00fb86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/fetch-spec.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ mv "${REPO_DIR}/docker-compose.override.yml.example" "${REPO_DIR}/docker-compose
2121
export VERSION="v${NETBOX_VERSION}"
2222
docker compose --project-directory="${REPO_DIR}" up --detach --quiet-pull
2323

24-
curl --silent http://127.0.0.1:8000/api/docs/?format=openapi > api/openapi.json
24+
while ! curl --silent http://localhost:8000/api/docs/?format=openapi > api/openapi.json 2> /dev/null; do
25+
sleep 1
26+
done
2527

2628
docker compose --project-directory="${REPO_DIR}" down
29+
30+
rm -rf "${REPO_DIR}"

0 commit comments

Comments
 (0)