File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# When deploying, change "TOP"
66# to the absolute installation path
77# TOP="."
8- TOP=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
8+ realpath=$( realpath " $0 " )
9+ TOP=$( dirname " $realpath " )
910
1011# Ideally, assert that Java is found
1112# export JAVA_HOME=/opt/jdk-9
1920if [ -d " ${TOP} /update" ]
2021then
2122 echo " Installing update..."
22- cd ${TOP}
23+ cd " ${TOP} "
2324 rm -rf doc lib
2425 mv update/* .
2526 rmdir update
2627 echo " Updated."
2728fi
2829
2930
30- JAR=` echo ${TOP} /product-* .jar`
31+ JAR=` echo " ${TOP} " /product-* .jar`
3132
3233# To get one instance, use server mode
3334OPT=" -server 4918"
@@ -40,10 +41,10 @@ firstarg=$1;
4041
4142if test " ${firstarg#* $filter1 } " ! = " $firstarg " ; then
4243 # Run MEDM converter etc. in foreground
43- java -Dfile.encoding=UTF-8 -jar $JAR $OPT " $@ "
44+ java -Dfile.encoding=UTF-8 -jar " $JAR " $OPT " $@ "
4445elif test " ${firstarg#* $filter2 } " ! = " $firstarg " ; then
45- java -Dfile.encoding=UTF-8 -jar $JAR $OPT " $@ "
46+ java -Dfile.encoding=UTF-8 -jar " $JAR " $OPT " $@ "
4647else
4748 # Run UI as separate thread
48- java -Dfile.encoding=UTF-8 -jar $JAR $OPT " $@ " &
49+ java -Dfile.encoding=UTF-8 -jar " $JAR " $OPT " $@ " &
4950fi
You can’t perform that action at this time.
0 commit comments