Ver código fonte

HPCC-21493 Automate build tagging process

Fix issue with spaces in HPCC_NAME

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 6 anos atrás
pai
commit
86331b90e8
1 arquivos alterados com 1 adições e 1 exclusões
  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'"
 }