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 2
2
#! / usr/ bin/ env bash
3
3
# GNU/ Linux startup script generated by JavaPackager plugin
4
4
5
- SCRIPTPATH= $(dirname $(readlink - e "$0" ))
5
+ SCRIPTPATH= $(dirname " $(readlink -e " $0 ")" )
6
6
7
7
#if ($info.bundleJre )
8
8
JAVA= "$SCRIPTPATH / ${info . jreDirectoryName }/ bin/ java"
@@ -65,7 +65,7 @@ export PATH=${info.envPath}
65
65
66
66
JVMDefaultOptions= "${vmArgs }"
67
67
JVMOptionsFile= "$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 }" )
69
69
70
70
JVMClassPath= "$BINARY "
71
71
#foreach ($classpath in $info.classpaths )
@@ -78,12 +78,12 @@ cd "$SCRIPTPATH"
78
78
79
79
#if ($info.scripts.bootstrap )
80
80
# invoke bootstrap script
81
- Bootstrap= $SCRIPTPATH / scripts/ ${info . bootstrapFile . name } && [ - x "$Bootstrap " ] && $Bootstrap
81
+ Bootstrap= " $SCRIPTPATH / scripts/ ${info . bootstrapFile . name }" && [ - x "$Bootstrap " ] && " $Bootstrap "
82
82
#end
83
83
84
84
#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 } $@
86
86
#else
87
- $ JAVA $ JVMDefaultOptions - cp $ JVMClassPath ${info . mainClass } $@
87
+ "${ JAVA }" ${ JVMDefaultOptions } - cp "${ JVMClassPath }" ${info . mainClass } $@
88
88
#end
89
89
exit 0
You can’t perform that action at this time.
0 commit comments