This is an automated email from the ASF dual-hosted git repository.

adonisling pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new e9bc9b5368 [chore](macOS) Fix invalid option errors in start_be.sh 
(#23861) (#23891)
e9bc9b5368 is described below

commit e9bc9b5368081db8cd6290387833351ffa620f37
Author: Adonis Ling <adonis0...@gmail.com>
AuthorDate: Tue Sep 5 10:28:33 2023 +0800

    [chore](macOS) Fix invalid option errors in start_be.sh (#23861) (#23891)
    
    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 09613b3b20..daace4812f 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -292,11 +292,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

Reply via email to