Commit 65289e1c by 据说甜蜜呢

修改方法RollEnvironmentOf

parent 0aa7af74
Pipeline #4323 passed with stage
in 17 seconds
......@@ -141,8 +141,9 @@ function IsPublishableOf()
# get updating's environment of branch
function RollEnvironmentOf()
{
FirstCharUpperCase ${CI_COMMIT_REF_NAME} branch
declare env=($(grep -oP "(?<=${branch}>)[^<]+" "./devops/branch.env.props"))
declare branch=${CI_COMMIT_REF_NAME}
declare name=($(grep -oP "(?<=${branch}>)[^<]+" "./devops/branch.env.props"))
FirstCharUpperCase ${name} env
eval $1="${env}"
}
......
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