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