Commit 38ffbe62 by 据说甜蜜呢

修改方法

parent 33dbeccb
Pipeline #4089 passed with stage
in 14 seconds
...@@ -49,11 +49,10 @@ function GetMajor() ...@@ -49,11 +49,10 @@ function GetMajor()
function GetVersion() function GetVersion()
{ {
declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "devops/version.props")) declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "./devops/version.props"))
declare minor=($(grep -oP '(?<=VersionMinor>)[^<]+' "devops/version.props")) declare minor=($(grep -oP '(?<=VersionMinor>)[^<]+' "./devops/version.props"))
declare patch=($(grep -oP '(?<=VersionPatch>)[^<]+' "devops/version.props")) declare patch=($(grep -oP '(?<=VersionPatch>)[^<]+' "./devops/version.props"))
declare v=${major}.${minor}.${patch} eval $1=${major}.${minor}.${patch}
eval $1=${v}
} }
function GetImageRegistrySettings() function GetImageRegistrySettings()
......
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