Skip to content

Commit

Permalink
Fix bug in regen_openapi.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman committed Mar 1, 2025
1 parent 51a0c43 commit ff27e0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions regen_openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -eo pipefail

if [[ $DEBUG != "" ]]; then
set -x
fi

OPENAPI_GIT_REV='272125558d6ac4718bdc87b1652e5d4122b69f19'
OPENAPI_CODEGEN_IMAGE='ghcr.io/svix/openapi-codegen:latest'
REPO_ROOT=$(git rev-parse --show-toplevel)
Expand All @@ -23,7 +27,7 @@ fi

# pull image
# This will be removed once https://github.com/svix/openapi-codegen/pull/82 is merge
if [ -z "$(docker image inspect --format="ignore me" 2> /dev/null)" ]; then
if [ -z "$($DOCKER_BIN image inspect --format="ignore me" $OPENAPI_CODEGEN_IMAGE 2> /dev/null)" ]; then
echo "The codegen image is not on your system, building now (this will only happen once)"
$DOCKER_BIN image build -t $OPENAPI_CODEGEN_IMAGE https://github.com/svix/openapi-codegen.git#mendy/add-docker-builds
fi
Expand All @@ -49,10 +53,6 @@ run_generate() {
$1 container rm $CONTAINER_ID >/dev/null
}

if [[ $DEBUG != "" ]]; then
set -x
fi

# JavaScript
(
echo Generating JavaScript lib
Expand Down

0 comments on commit ff27e0a

Please sign in to comment.