Skip to content

Commit 7dfd940

Browse files
jaypeajimschubert
authored andcommitted
Docker: use correct MAVEN_CONFIG (#182)
the variable wasn't used correctly. i always fell back to use `.` as homedir.
1 parent bd50d36 commit 7dfd940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
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/openapi-generator-cli" -Duser.home=$(dirname MAVEN_CONFIG) package)
17+
(cd "${GEN_DIR}" && exec mvn -am -pl "modules/openapi-generator-cli" -Duser.home=$(dirname $MAVEN_CONFIG) package)
1818
fi
1919
command=$1
2020
shift

0 commit comments

Comments
 (0)