Skip to content

Commit

Permalink
[Fix][Script] Fix lose jvm option when jvm_options file not end with …
Browse files Browse the repository at this point in the history
…`\n` (apache#6693)
  • Loading branch information
Hisoka-X authored Apr 15, 2024
1 parent a8c6cc6 commit dba9953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ fi

CLASS_PATH=${APP_DIR}/lib/*:${APP_JAR}

while read line
do
if [[ ! $line == \#* ]] && [ -n "$line" ]; then
while IFS= read -r line || [[ -n "$line" ]]; do
if [[ ! $line == \#* ]]; then
JAVA_OPTS="$JAVA_OPTS $line"
fi
done < ${APP_DIR}/config/jvm_options
Expand Down
5 changes: 2 additions & 3 deletions seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ fi

CLASS_PATH=${APP_DIR}/lib/*:${APP_JAR}

while read line
do
if [[ ! $line == \#* ]] && [ -n "$line" ]; then
while IFS= read -r line || [[ -n "$line" ]]; do
if [[ ! $line == \#* ]]; then
JAVA_OPTS="$JAVA_OPTS $line"
fi
done < ${APP_DIR}/config/jvm_client_options
Expand Down

0 comments on commit dba9953

Please sign in to comment.