Skip to content

Commit 8ab39a2

Browse files
authored
[scripts] Remove misspelled OPENAPI_GENERATOR_DOWLOAD_CACHE_DIR (#5035)
1 parent b62fc1c commit 8ab39a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bin/utils/openapi-generator-cli.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ artifactid=openapi-generator-cli
4242
ver=${OPENAPI_GENERATOR_VERSION:-$(latest.tag $ghrepo)}
4343

4444
jar=${artifactid}-${ver}.jar
45-
46-
# TODO: Remove OPENAPI_GENERATOR_DOWLOAD_CACHE_DIR for release 5.0
47-
if [ -n "${OPENAPI_GENERATOR_DOWLOAD_CACHE_DIR}" ]; then
48-
>&2 printf "[WARN] Variable OPENAPI_GENERATOR_DOWLOAD_CACHE_DIR is misspelled.\nPlease change to OPENAPI_GENERATOR_DOWNLOAD_CACHE_DIR. This option will be removed in the 5.0 release.\n"
49-
fi
50-
cachedir=${OPENAPI_GENERATOR_DOWNLOAD_CACHE_DIR:-"$OPENAPI_GENERATOR_DOWLOAD_CACHE_DIR"}
45+
cachedir=${OPENAPI_GENERATOR_DOWNLOAD_CACHE_DIR}
5146

5247
DIR=${cachedir:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"}
5348

0 commit comments

Comments
 (0)