Files
dpkg/check-version.sh
2026-04-17 15:19:29 +03:00

10 lines
237 B
Bash

#!/bin/bash
# Git repository
REPO="https://git.dpkg.org/git/dpkg/dpkg.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"