diff --git a/ci/setup_grpc.sh b/ci/setup_grpc.sh index 0740fa54a4..dd8a302d47 100755 --- a/ci/setup_grpc.sh +++ b/ci/setup_grpc.sh @@ -56,8 +56,8 @@ done if [ -z "${gcc_version}" ]; then gcc_version=`gcc --version | awk '/gcc/ {print $NF}'` fi -if [[ "${gcc_version}" < "${gcc_version_for_new_grpc}" ]]; then - echo "less" +if [[ "${gcc_version}" < "${gcc_version_for_new_grpc}" ]] && [[ "${gcc_version:0:1}" == "." ]]; then + echo "${gcc_version} less than ${gcc_version_for_new_grpc}" std_version='11' install_grpc_version=${old_grpc_version} fi