Explorar o código

HPCC-21493 Automate build tagging process

Fix issue with spaces in HPCC_NAME

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=6) %!d(string=hai) anos
pai
achega
86331b90e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmake_modules/parse_cmake.sh

+ 1 - 1
cmake_modules/parse_cmake.sh

@@ -81,7 +81,7 @@ function extract()
     local _file=$1
     local _name=$2
     local _search=$2
-    local _result=`grep -i "set *( *$_search " $_file | sed "s/^ *//" | awk -F "[ \")(]*" '{ print $3 }' -`
+    local _result=`grep -i "set *( *$_search " $_file | sed -E "s/^.*$_search *\"?//" | sed -E "s/\"? *\)//"`
     eval "$_name='$_result'"
 }