From d569cff98f8237c731f6fa8fdd2cdff85459d3f9 Mon Sep 17 00:00:00 2001 From: Oleksandr Kovtunenko Date: Tue, 8 Jan 2019 11:58:35 +0200 Subject: [PATCH] try to Fix MXS-2206 (#185) * try to Fix MXS-2206 * use sort -v * return empty line --- BUILD/install_build_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD/install_build_deps.sh b/BUILD/install_build_deps.sh index 8ea0bc45f..df67add78 100755 --- a/BUILD/install_build_deps.sh +++ b/BUILD/install_build_deps.sh @@ -89,7 +89,7 @@ fi sudo tar xzf cmake-3.7.1-Linux-x86_64.tar.gz -C /usr/ --strip-components=1 cmake_version=`cmake --version | grep "cmake version" | awk '{ print $3 }'` -if [ "$cmake_version" \< "3.7.1" ] ; then +if [ "`echo -e "3.7.1\n$cmake_version"|sort -V|head -n 1`" != "3.7.1" ] ; then echo "cmake does not work! Trying to build from source" wget -q https://cmake.org/files/v3.7/cmake-3.7.1.tar.gz --no-check-certificate tar xzf cmake-3.7.1.tar.gz