This is an automated email from the ASF dual-hosted git repository. adonisling pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push: new b59065e847 [chore](macOS) Fix invalid option errors in start_be.sh (#23861) (#23892) b59065e847 is described below commit b59065e8470e7e246feb5a7a9c49fca874707598 Author: Adonis Ling <adonis0...@gmail.com> AuthorDate: Tue Sep 5 10:31:42 2023 +0800 [chore](macOS) Fix invalid option errors in start_be.sh (#23861) (#23892) Cherry pick #23861 --- bin/start_be.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/start_be.sh b/bin/start_be.sh index a26241862b..d0e4f6485e 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -294,11 +294,11 @@ fi if [[ "${MACHINE_OS}" == "Darwin" ]]; then max_fd_limit='-XX:-MaxFDLimit' - if ! echo "${final_java_opt}" | grep "${max_fd_limit/-/\-}" >/dev/null; then + if ! echo "${final_java_opt}" | grep "${max_fd_limit/-/\\-}" >/dev/null; then final_java_opt="${final_java_opt} ${max_fd_limit}" fi - if [[ -n "${JAVA_OPTS}" ]] && ! echo "${JAVA_OPTS}" | grep "${max_fd_limit/-/\-}" >/dev/null; then + if [[ -n "${JAVA_OPTS}" ]] && ! echo "${JAVA_OPTS}" | grep "${max_fd_limit/-/\\-}" >/dev/null; then JAVA_OPTS="${JAVA_OPTS} ${max_fd_limit}" fi fi --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org