diff --git a/bin/start_fe.sh b/bin/start_fe.sh index ac5971072c306c..b089596a9cdb73 100755 --- a/bin/start_fe.sh +++ b/bin/start_fe.sh @@ -258,6 +258,12 @@ if [[ "${HELPER}" != "" ]]; then HELPER="-helper ${HELPER}" fi +if [[ "${OPT_VERSION}" != "" ]]; then + export DORIS_LOG_TO_STDERR=1 + ${LIMIT:+${LIMIT}} "${JAVA}" org.apache.doris.DorisFE --version + exit 0 +fi + if [[ "${IMAGE_TOOL}" -eq 1 ]]; then if [[ -n "${IMAGE_PATH}" ]]; then ${LIMIT:+${LIMIT}} "${JAVA}" ${final_java_opt:+${final_java_opt}} ${coverage_opt:+${coverage_opt}} org.apache.doris.DorisFE -i "${IMAGE_PATH}" diff --git a/cloud/script/start.sh b/cloud/script/start.sh index 1bce9813f4cf52..ecb5a3b2bed1e6 100644 --- a/cloud/script/start.sh +++ b/cloud/script/start.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/cloud/script/stop.sh b/cloud/script/stop.sh index 48f01c545ae840..1b59cef718243e 100644 --- a/cloud/script/stop.sh +++ b/cloud/script/stop.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/gensrc/script/gen_build_version.sh b/gensrc/script/gen_build_version.sh index a85effebd5e3bb..6b6852199682b0 100755 --- a/gensrc/script/gen_build_version.sh +++ b/gensrc/script/gen_build_version.sh @@ -35,7 +35,7 @@ build_version_hotfix=0 build_version_rc_version="" build_version="${build_version_prefix}-${build_version_major}.${build_version_minor}.${build_version_patch}" -if [[ ${build_version_hotfix} > 0 ]]; then +if [[ ${build_version_hotfix} -gt 0 ]]; then build_version+=".${build_version_hotfix}" fi build_version+="-${build_version_rc_version}" @@ -225,7 +225,7 @@ fi build_version="${build_version_prefix}-${build_version_major}.${build_version_minor}.${build_version_patch}" -if [[ ${build_version_hotfix} > 0 ]]; then +if [[ ${build_version_hotfix} -gt 0 ]]; then build_version+=".${build_version_hotfix}" fi