Skip to content

Commit e9b4742

Browse files
committed
Update startup.sh.vtl
1 parent fc9c581 commit e9b4742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/linux/startup.sh.vtl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export PATH=${info.envPath}
6565

6666
JVMDefaultOptions="${vmArgs}"
6767
JVMOptionsFile="$SCRIPTPATH/${info.name}.l4j.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

7070
JVMClassPath="$BINARY"
7171
#foreach ($classpath in $info.classpaths)
@@ -78,7 +78,7 @@ 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)

0 commit comments

Comments
 (0)