Skip to content

Commit

Permalink
Fix gcc version detection
Browse files Browse the repository at this point in the history
Signed-off-by: owent <[email protected]>
  • Loading branch information
owent committed May 27, 2023
1 parent 1dcceaa commit be9b3f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/setup_grpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be9b3f9

Please sign in to comment.