Fix versioning in xml
This commit is contained in:
parent
bb0405ac5b
commit
0cacdd8ed5
@ -3,7 +3,7 @@
|
|||||||
# Program name
|
# Program name
|
||||||
PROGRAM_NAME="Octojpack"
|
PROGRAM_NAME="Octojpack"
|
||||||
PROGRAM_CODE="octojpack"
|
PROGRAM_CODE="octojpack"
|
||||||
PROGRAM_VERSION="1.3.0"
|
PROGRAM_VERSION="1.3.1"
|
||||||
PROGRAM_V="1.3"
|
PROGRAM_V="1.3"
|
||||||
PROGRAM_URL="https://git.vdm.dev/octoleo/${PROGRAM_CODE}"
|
PROGRAM_URL="https://git.vdm.dev/octoleo/${PROGRAM_CODE}"
|
||||||
|
|
||||||
@ -795,10 +795,9 @@ function setPackageXml() {
|
|||||||
_echo "[info] Setting the Package XML..."
|
_echo "[info] Setting the Package XML..."
|
||||||
# set the local version
|
# set the local version
|
||||||
local version
|
local version
|
||||||
# remove all but numbers and points
|
# remove the v in front of the version (number-state-number)
|
||||||
# TODO we need to allow only stable versions (when getting the tags)
|
version="${VDM_PACKAGE_VERSION:-1.0.0}"
|
||||||
# shellcheck disable=SC2001
|
version="${version/#v/}"
|
||||||
version=$(echo "${VDM_PACKAGE_VERSION:-1.0.0}" | sed 's/[^0-9.]//g')
|
|
||||||
# add the package details
|
# add the package details
|
||||||
{
|
{
|
||||||
echo '<?xml version="1.0" encoding="utf-8"?>'
|
echo '<?xml version="1.0" encoding="utf-8"?>'
|
||||||
|
Loading…
Reference in New Issue
Block a user