diff --git a/CHANGES.md b/CHANGES.md index 53055e786..145ad0228 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ #### Resolved GitHub issues * CodecService fails to decode XML in python when referencing namespace prefix ([#1071](https://github.com/CiscoDevNet/ydk-gen/issues/1071)) + * Error in ydk-gen-master/test/dependencies_centos.sh version check ([#1078](https://github.com/CiscoDevNet/ydk-gen/issues/1078)) ### Resolved non-GitHub issues * Fixed and tested C++ sample apps diff --git a/test/dependencies_centos.sh b/test/dependencies_centos.sh index a03aa65df..e2b50878f 100755 --- a/test/dependencies_centos.sh +++ b/test/dependencies_centos.sh @@ -54,7 +54,8 @@ function check_install_gcc { print_msg "The gcc/g++ not installed" gcc_version="4.0.0" fi - if [[ $gcc_version < "4.8.1" ]] + major=$(echo $gcc_version | cut -d '.' -f 1) + if [[ $major -le 4 && $gcc_version < "4.8.1" ]] then print_msg "Upgrading gcc/g++ to version 7" $sudo_cmd yum install centos-release-scl -y > /dev/null