This is an automated email from the ASF dual-hosted git repository. hellostephen 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 011d3934e10 [fix](shell) clean ShellCheck (#45608) 011d3934e10 is described below commit 011d3934e100d4668403649d892f1a2c2cdb7dae Author: Socrates <suyit...@selectdb.com> AuthorDate: Wed Dec 18 20:34:46 2024 +0800 [fix](shell) clean ShellCheck (#45608) ### What problem does this PR solve? Related PR: #45490 Problem Summary: ```shell In gensrc/script/gen_build_version.sh line 38: if [[ ${build_version_hotfix} > 0 ]]; then ^-- SC2071 (error): > is for string comparisons. Use -gt instead. In gensrc/script/gen_build_version.sh line 228: if [[ ${build_version_hotfix} > 0 ]]; then ^-- SC2071 (error): > is for string comparisons. Use -gt instead. ``` --- gensrc/script/gen_build_version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gensrc/script/gen_build_version.sh b/gensrc/script/gen_build_version.sh index a85effebd5e..6b685219968 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org