File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22#! / usr/ bin/ env bash
33# GNU/ Linux startup script generated by JavaPackager plugin
44
5- SCRIPTPATH= $(dirname $(readlink - e "$0" ))
5+ SCRIPTPATH= $(dirname " $(readlink -e " $0 ")" )
66
77#if ($info.bundleJre )
88JAVA= "$SCRIPTPATH / ${info . jreDirectoryName }/ bin/ java"
@@ -65,7 +65,7 @@ export PATH=${info.envPath}
6565
6666JVMDefaultOptions= "${vmArgs }"
6767JVMOptionsFile= "$SCRIPTPATH / ${info . name }.l4 j.ini"
68- [ - f $ JVMOptionsFile ] && while read - r option; do JVMDefaultOptions+ = " $option "; done <<< $(sed "/^#.*$/d" $ JVMOptionsFile )
68+ [ - f "${ JVMOptionsFile }" ] && while read - r option; do JVMDefaultOptions+ = " $option "; done <<< $(sed "/^#.*$/d" "${ JVMOptionsFile }" )
6969
7070JVMClassPath= "$BINARY "
7171#foreach ($classpath in $info.classpaths )
@@ -78,12 +78,12 @@ cd "$SCRIPTPATH"
7878
7979#if ($info.scripts.bootstrap )
8080# invoke bootstrap script
81- Bootstrap= $SCRIPTPATH / scripts/ ${info . bootstrapFile . name } && [ - x "$Bootstrap " ] && $Bootstrap
81+ Bootstrap= " $SCRIPTPATH / scripts/ ${info . bootstrapFile . name }" && [ - x "$Bootstrap " ] && " $Bootstrap "
8282#end
8383
8484#if ($info.administratorRequired )
85- pkexec env DISPLAY= $DISPLAY XAUTHORITY= $XAUTHORITY GDKBACKEND= x11 $ JAVA $ JVMDefaultOptions - cp $ JVMClassPath ${info . mainClass } $@
85+ pkexec env DISPLAY= $DISPLAY XAUTHORITY= $XAUTHORITY GDKBACKEND= x11 "${ JAVA }" ${ JVMDefaultOptions } - cp "${ JVMClassPath }" ${info . mainClass } $@
8686#else
87- $ JAVA $ JVMDefaultOptions - cp $ JVMClassPath ${info . mainClass } $@
87+ "${ JAVA }" ${ JVMDefaultOptions } - cp "${ JVMClassPath }" ${info . mainClass } $@
8888#end
8989exit 0
You can’t perform that action at this time.
0 commit comments