Skip to content

Commit a4d7ab3

Browse files
authored
Merge pull request #206 from GiriChandana123/DES-6554-fix-spaces
DES-6554 Addressed the issue with spaces of MPR file name
2 parents a04ae52 + b8be136 commit a4d7ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mxbuild/build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cd /workdir
1818
if [ -f /workdir/project ]; then
1919
JAVA_VERSION=$(cat java-version)
2020
elif [ -f /opt/mendix/modeler/mx ]; then
21-
JAVA_VERSION=$(/opt/mendix/modeler/mx dump-mpr --unit-type 'Settings$ProjectSettings' /workdir/project/${MPR_FILENAME} | \
21+
JAVA_VERSION=$(/opt/mendix/modeler/mx dump-mpr --unit-type 'Settings$ProjectSettings' /workdir/project/"${MPR_FILENAME}" | \
2222
jq -r '.units[] | select(.["$Type"]=="Settings$ProjectSettings") | .["settingsParts"][] | select(.["$Type"]=="Settings$RuntimeSettings").javaVersion | if (. == null or . == "null") then "Java11" else . end')
2323
else
2424
JAVA_VERSION=11
@@ -33,4 +33,4 @@ $MXBUILD_COMMAND \
3333
--target=package \
3434
--java-home=${JDK_HOME} --java-exe-path=${JDK_HOME}/bin/java \
3535
--model-version=${MODEL_VERSION} \
36-
--output=/workdir/output.mda /workdir/project/${MPR_FILENAME}
36+
--output=/workdir/output.mda /workdir/project/"${MPR_FILENAME}"

0 commit comments

Comments
 (0)