replace all '-' in version when generate rpm version

Signed-off-by: bingshen.wbs <bingshen.wbs@alibaba-inc.com>
Upstream-commit: 39c434fb36f66803b107ad410dec6b06875bfe97
Component: packaging
This commit is contained in:
bingshen.wbs
2017-12-08 17:47:43 +08:00
parent 376d2e9872
commit cd7f41a503

View File

@ -46,5 +46,5 @@ if [[ "$rpmVersion" == *-dev ]] || [ -n "$($GIT_COMMAND status --porcelain)" ];
fi
# Replace any other dashes with periods
rpmVersion="${rpmVersion/-/.}"
rpmVersion="${rpmVersion//-/.}"
echo $rpmVersion $rpmRelease $DOCKER_GITCOMMIT