This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 8a226bbd63 [fix](start_be) ignore output from command -v (#24739)
8a226bbd63 is described below
commit 8a226bbd63c0a0cd7dde47e94951b365bd939991
Author: Dongyang Li <[email protected]>
AuthorDate: Thu Sep 21 19:57:43 2023 +0800
[fix](start_be) ignore output from command -v (#24739)
---
bin/start_be.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/start_be.sh b/bin/start_be.sh
index b527ca0069..a78c9af447 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -142,7 +142,7 @@ jdk_version() {
local result
local IFS=$'\n'
- if ! command -v "${java_cmd}"; then
+ if ! command -v "${java_cmd}" >/dev/null; then
echo "ERROR: invalid java_cmd ${java_cmd}" >>"${LOG_DIR}/be.out"
result=no_java
return 1
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]