Update package version to 2.03.35
This commit is contained in:
1 parent
56b2446808
commit
6203e8949f
2 files changed
+19
-2
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user