Commit 04cd5a27 by 据说甜蜜呢

重命名

parent 7e2fbe3b
......@@ -10,9 +10,9 @@ function GetServices()
function GetServiceName()
{
declare servicePrefix=${1}
declare serviceName=$(ls ./src/Services/${servicePrefix}|head -n 1|xargs -d '/' echo)
eval $2="${serviceName}"
declare prefix=${1}
declare name=$(ls ./src/Services/${prefix}|head -n 1|xargs -d '/' echo)
eval $2="${name}"
}
function GetAppName()
......@@ -35,16 +35,16 @@ function GetImageUserName()
function GetCiCdSettings()
{
declare allPublishable=($(grep -oP '(?<=AllPublishable>)[^<]+' "/tmp/cicd.props"))
declare noPublishable=($(grep -oP '(?<=NoPublishable>)[^<]+' "/tmp/cicd.props"))
eval $1=${allPublishable}
eval $2=${noPublishable}
declare all=($(grep -oP '(?<=AllPublishable>)[^<]+' "/tmp/cicd.props"))
declare no=($(grep -oP '(?<=NoPublishable>)[^<]+' "/tmp/cicd.props"))
eval $1=${all}
eval $2=${no}
}
function GetMajor()
{
declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "devops/version.props"))
eval $1=${major}
declare m=($(grep -oP '(?<=VersionMajor>)[^<]+' "devops/version.props"))
eval $1=${m}
}
function GetVersion()
......@@ -52,8 +52,8 @@ 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 version=${major}.${minor}.${patch}
eval $1=${version}
declare v=${major}.${minor}.${patch}
eval $1=${v}
}
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