Commit 4607d90c by 据说甜蜜呢

修改方法GetNameSpace

parent 9e2f1a55
Pipeline #4150 passed with stage
in 19 seconds
...@@ -46,9 +46,9 @@ function GetAppName() ...@@ -46,9 +46,9 @@ function GetAppName()
function GetNameSpace() function GetNameSpace()
{ {
GetMajor major GetMajor major
declare namespace=($(grep -oP '(?<=NameSpace>)[^<]+' "./devops/app.props")) declare ns=($(grep -oP '(?<=NameSpace>)[^<]+' "./devops/app.props"))
declare namespaceOfK8s=$(echo "${namespace}-v${major}" | tr 'A-Z' 'a-z') declare nsOfK8s=$(echo "${ns}-v${major}" | tr 'A-Z' 'a-z')
eval $1=${namespaceOfK8s} eval $1=${nsOfK8s}
} }
function GetSolutionName() function GetSolutionName()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment