Skip to content

Commit d80cfcb

Browse files
authored
Docker: use correct MAVEN_CONFIG
the variable wasn't used correctly. i always fell back to use `.` as homedir and never used the given ENV setting.
1 parent faf1c93 commit d80cfcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pattern="@Command(name = \"$1\""
1414
if expr "x$1" : 'x[a-z][a-z-]*$' > /dev/null && fgrep -qe "$pattern" "$cmdsrc"/*.java || expr "$1" = 'help' > /dev/null; then
1515
# If ${GEN_DIR} has been mapped elsewhere from default, and that location has not been built
1616
if [[ ! -f "${codegen}" ]]; then
17-
(cd "${GEN_DIR}" && exec mvn -am -pl "modules/swagger-codegen-cli" -Duser.home=$(dirname MAVEN_CONFIG) package)
17+
(cd "${GEN_DIR}" && exec mvn -am -pl "modules/swagger-codegen-cli" -Duser.home=$(dirname $MAVEN_CONFIG) package)
1818
fi
1919
command=$1
2020
shift

0 commit comments

Comments
 (0)