diff --git a/src/octojpack b/src/octojpack
index cb9c696..a240dfd 100755
--- a/src/octojpack
+++ b/src/octojpack
@@ -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 ''
@@ -755,7 +761,7 @@ function setPackageXml() {
echo ''
# set the version
echo -en '\t'
- echo -n "${VDM_PACKAGE_VERSION:-1.0.0}"
+ echo -n "${version}"
echo ''
# set the creationDate
echo -en '\t'