Fixed the version mismatch.
This commit is contained in:
parent
202797f4bf
commit
4054508729
@ -739,6 +739,12 @@ function setLanguageXml() {
|
||||
function setPackageXml() {
|
||||
# little information of progress
|
||||
_echo "[info] Setting the Package XML..."
|
||||
# set the local version
|
||||
local version
|
||||
# remove all but numbers and points
|
||||
# TODO we need to allow only stable versions (when getting the tags)
|
||||
# shellcheck disable=SC2001
|
||||
version=$(echo "${VDM_PACKAGE_VERSION:-1.0.0}" | sed 's/[^0-9.]//g')
|
||||
# add the package details
|
||||
{
|
||||
echo '<?xml version="1.0" encoding="utf-8"?>'
|
||||
@ -755,7 +761,7 @@ function setPackageXml() {
|
||||
echo '</packagename>'
|
||||
# set the version
|
||||
echo -en '\t<version>'
|
||||
echo -n "${VDM_PACKAGE_VERSION:-1.0.0}"
|
||||
echo -n "${version}"
|
||||
echo '</version>'
|
||||
# set the creationDate
|
||||
echo -en '\t<creationDate>'
|
||||
|
Loading…
Reference in New Issue
Block a user