Update package version to 2.03.35

This commit is contained in:
2025-09-18 20:18:48 +03:00
parent 56b2446808
commit 6203e8949f
2 changed files with 19 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# Gitlab repository
REPO="lvmteam/lvm2"
# Replace slash with URL encoded representation
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API
TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
# Replace '_' with '.'
VERSION=${VERSION//_/.}
echo "$VERSION"