diff --git a/packaging/cli-migrations/v2/docker-entrypoint.sh b/packaging/cli-migrations/v2/docker-entrypoint.sh index c38f2cb76f4..81548b240f2 100755 --- a/packaging/cli-migrations/v2/docker-entrypoint.sh +++ b/packaging/cli-migrations/v2/docker-entrypoint.sh @@ -38,7 +38,7 @@ fi # wait for a port to be ready wait_for_port() { - PORT=$1 + local PORT=$1 log "migrations-startup" "waiting $HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT for $PORT to be ready" for _ in $(seq 1 $HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT); do diff --git a/packaging/cli-migrations/v3/docker-entrypoint.sh b/packaging/cli-migrations/v3/docker-entrypoint.sh index 0e79d611f7f..6c8ad6fd9dc 100755 --- a/packaging/cli-migrations/v3/docker-entrypoint.sh +++ b/packaging/cli-migrations/v3/docker-entrypoint.sh @@ -34,7 +34,7 @@ fi # wait for a port to be ready wait_for_port() { - PORT=$1 + local PORT=$1 log "migrations-startup" "waiting $HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT for $PORT to be ready" for _ in $(seq 1 $HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT); do