Skip to content

Commit afc4632

Browse files
authored
Update startup.sh
修改LIB_JARS变量,使其末尾不再有多余冒号(:)
1 parent aea4b42 commit afc4632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy-server/src/main/resources/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ STDOUT_FILE=$LOGS_DIR/stdout.log
2121
CLOG_FILE=$LOGS_DIR/gc.log
2222

2323
LIB_DIR=$DEPLOY_DIR/lib
24-
LIB_JARS=`ls $LIB_DIR|grep .jar|awk '{print "'$LIB_DIR'/"$0}'|tr "\n" ":"`
24+
LIB_JARS=`ls $LIB_DIR|grep .jar|awk '{print "'$LIB_DIR'/"$0}'| xargs | sed "s/ /:/g"`
2525

2626
JAVA_OPTS=" -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true "
2727
JAVA_DEBUG_OPTS=""

0 commit comments

Comments
 (0)