Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 8f0e4a3

Browse files
committed
fix JVMDefaultOptions when retreived from array
1 parent 63a85a0 commit 8f0e4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/universalJavaApplicationStub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ else
220220
JVMClassPath=`eval "echo ${JVMClassPath}"`
221221

222222
# read the JVM Default Options
223-
JVMDefaultOptions=`/usr/libexec/PlistBuddy -c "print :JVMDefaultOptions" "${InfoPlistFile}" 2> /dev/null | grep -o "\-.*" | tr -d '\n' | xargs`
223+
JVMDefaultOptions=`/usr/libexec/PlistBuddy -c "print :JVMDefaultOptions" "${InfoPlistFile}" 2> /dev/null | grep -o " \-.*" | tr -d '\n' | xargs`
224224

225225
# read the JVM Arguments
226226
JVMArguments=`/usr/libexec/PlistBuddy -c "print :JVMArguments" "${InfoPlistFile}" 2> /dev/null | tr -d '\n' | sed -E 's/Array \{ *(.*) *\}/\1/g' | sed 's/ */ /g' | xargs`

0 commit comments

Comments
 (0)