Add check-version.sh script

This commit is contained in:
2025-09-17 19:08:18 +03:00
parent 008f4519a0
commit a5d59afb64
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# Git repository
REPO="https://git.hadrons.org/cgit/libmd.git"
# Get tag name using 'git ls-remote'
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3)
echo "$TAG_NAME"