Commit 1ac4179b by 据说甜蜜呢

重命名

parent e38d4db2
Pipeline #4129 passed with stage
in 15 seconds
......@@ -58,15 +58,15 @@ function GetCiCdSettings()
function GetMajor()
{
declare m=($(grep -oP '(?<=VersionMajor>)[^<]+' "devops/version.props"))
declare m=($(grep -oP '(?<=Major>)[^<]+' "./devops/version.props"))
eval $1=${m}
}
function GetVersion()
{
declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "./devops/version.props"))
declare minor=($(grep -oP '(?<=VersionMinor>)[^<]+' "./devops/version.props"))
declare patch=($(grep -oP '(?<=VersionPatch>)[^<]+' "./devops/version.props"))
declare major=($(grep -oP '(?<=Major>)[^<]+' "./devops/version.props"))
declare minor=($(grep -oP '(?<=Minor>)[^<]+' "./devops/version.props"))
declare patch=($(grep -oP '(?<=Patch>)[^<]+' "./devops/version.props"))
eval $1="${major}.${minor}.${patch}"
}
......
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