From aa4ead2a6dfb0c9b5608d404fe4eaf346e3b1a84 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 17 Aug 2019 05:42:57 +0200 Subject: [PATCH] autoupdating generator script: userdef cache dir (#3631) with this addition the script should be able to store the jars at a user-defined folder if desired --- bin/utils/openapi-generator-cli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/utils/openapi-generator-cli.sh b/bin/utils/openapi-generator-cli.sh index ad95cd28e64..fcca6b35ec7 100644 --- a/bin/utils/openapi-generator-cli.sh +++ b/bin/utils/openapi-generator-cli.sh @@ -42,7 +42,7 @@ artifactid=openapi-generator-cli ver=${OPENAPI_GENERATOR_VERSION:-$(latest.tag $ghrepo)} jar=${artifactid}-${ver}.jar -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR=${OPENAPI_GENERATOR_DOWLOAD_CACHE_DIR:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"} if [ ! -f ${DIR}/${jar} ]; then repo="central::default::https://repo1.maven.org/maven2/"