From 17269e2f321f98a7f3eaec5c2d3605f544b571ca Mon Sep 17 00:00:00 2001 From: Tamir Date: Tue, 7 Nov 2023 16:04:51 +0200 Subject: [PATCH] grep returned --- .github/workflows/static_analysis.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index b86a1000a8b..36942eac291 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -58,7 +58,7 @@ jobs: #fi # Leave only digits of major and minor version in the variable - # current_cmake_version=$(echo ${current_cmake_version} | grep -oP "\d+\.\d+") + # current_cmake_version=$(echo ${current_cmake_version} | grep -oP "\d+\.\d+" | grep -oP "\d+\.\d+") echo "Debug: current_cmake_version = $current_cmake_version" @@ -94,6 +94,6 @@ jobs: then echo "The test PASSED, current CMake version is $CURRENT_CMAKE_VERSION and it is not higher than VERSION ${EXPECTED_CMAKE_MAJOR_VER}.${EXPECTED_CMAKE_MINOR_VER}" else - echo "Error - The minimal CMake version required for LibRS is ${EXPECTED_CMAKE_MAJOR_VER}.${EXPECTED_CMAKE_MINOR_VER} but on this build the minimal CMake version that works is $CURRENT_CMAKE_VERSION" + echo "Error - The minimal CMake version required for LibRS is ${EXPECTED_CMAKE_MAJOR_VER}.${EXPECTED_CMAKE_MINOR_VER} but on this build the minimal CMake version that works is $current_cmake_version" exit 1 fi